mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
19 lines
636 B
C#
19 lines
636 B
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.md in the project root for license information.
|
|
|
|
using System.IO;
|
|
|
|
namespace Microsoft.AspNet.SignalR.Json
|
|
{
|
|
/// <summary>
|
|
/// Implementations handle their own serialization to JSON.
|
|
/// </summary>
|
|
public interface IJsonWritable
|
|
{
|
|
/// <summary>
|
|
/// Serializes itself to JSON via a <see cref="System.IO.TextWriter"/>.
|
|
/// </summary>
|
|
/// <param name="writer">The <see cref="System.IO.TextWriter"/> that receives the JSON serialized object.</param>
|
|
void WriteJson(TextWriter writer);
|
|
}
|
|
}
|