Files
Readarr/src/Microsoft.AspNet.SignalR.Core/Json/IJsonWritable.cs
T
2013-11-21 21:26:57 -08:00

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);
}
}