C# Class CQRSMicroservices.Application.Deserializer

Inheritance: IDeserializer
Datei anzeigen Open project: AFASResearch/CQRS-Playground Class Usage Examples

Public Methods

Method Description
CreateCommand ( Newtonsoft.Json.Linq.JObject commandJson ) : Command

You could implement this with reflection or some other deserialize algorithm. For this sample, we explicitly implemented this.

CreateEvent ( Newtonsoft.Json.Linq.JObject eventJson ) : Event

You could implement this with reflection or some other deserialize algorithm. For this sample, we explicitly implemented this.

CreateQuery ( string name, IEnumerable query ) : Query

Method Details

CreateCommand() public method

You could implement this with reflection or some other deserialize algorithm. For this sample, we explicitly implemented this.
public CreateCommand ( Newtonsoft.Json.Linq.JObject commandJson ) : Command
commandJson Newtonsoft.Json.Linq.JObject
return CQRSMicroservices.Framework.Command

CreateEvent() public method

You could implement this with reflection or some other deserialize algorithm. For this sample, we explicitly implemented this.
public CreateEvent ( Newtonsoft.Json.Linq.JObject eventJson ) : Event
eventJson Newtonsoft.Json.Linq.JObject
return CQRSMicroservices.Framework.Event

CreateQuery() public method

public CreateQuery ( string name, IEnumerable query ) : Query
name string
query IEnumerable
return Query