C# Class Net.DDP.Server.ReactiveDocument

Inheritance: NotifiableExpandoObject, IDocument
Show file Open project: jamie-tigereye/DDPServer.Net

Public Methods

Method Description
TryConvertDocument ( IDocument document ) : ReactiveDocument

Uses JSON serialization to convert an object inheriting from the IDocument interface to a reactive document. Probably not the most elegant solution.

TryConvertDocument ( string id, object document ) : ReactiveDocument

Uses JSON serialization to convert any object to a reactive document. Probably not the most elegant solution.

Method Details

TryConvertDocument() public static method

Uses JSON serialization to convert an object inheriting from the IDocument interface to a reactive document. Probably not the most elegant solution.
public static TryConvertDocument ( IDocument document ) : ReactiveDocument
document IDocument
return ReactiveDocument

TryConvertDocument() public static method

Uses JSON serialization to convert any object to a reactive document. Probably not the most elegant solution.
public static TryConvertDocument ( string id, object document ) : ReactiveDocument
id string
document object
return ReactiveDocument