imported signalr 1.1.3 into NzbDrone.

This commit is contained in:
kayone
2013-11-21 21:26:57 -08:00
parent 891443e05d
commit 0e623e7ce4
236 changed files with 20490 additions and 35 deletions
@@ -0,0 +1,28 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.md in the project root for license information.
using System;
using System.IO;
namespace Microsoft.AspNet.SignalR.Json
{
/// <summary>
/// Used to serialize and deserialize outgoing/incoming data.
/// </summary>
public interface IJsonSerializer
{
/// <summary>
/// Serializes the specified object to a <see cref="System.IO.TextWriter"/>.
/// </summary>
/// <param name="value">The object to serialize</param>
/// <param name="writer">The <see cref="System.IO.TextWriter"/> to serialize the object to.</param>
void Serialize(object value, TextWriter writer);
/// <summary>
/// Deserializes the JSON to a .NET object.
/// </summary>
/// <param name="reader">The <see cref="System.IO.TextReader"/> to deserialize the object from.</param>
/// <param name="targetType">The <see cref="System.Type"/> of object being deserialized.</param>
/// <returns>The deserialized object from the JSON string.</returns>
object Parse(TextReader reader, Type targetType);
}
}