Interface IEventDeserialiser<TAuthenticationToken>
Deserialises IEvent<TAuthenticationToken> from a serialised state.
Namespace: Cqrs.EventStore
Assembly: Cqrs.EventStore.dll
Syntax
public interface IEventDeserialiser<TAuthenticationToken>
Type Parameters
Name | Description |
---|---|
TAuthenticationToken | The System.Type of the authentication token. |
Methods
Deserialise(RecordedEvent)
Deserialise the provided eventData
into an IEvent<TAuthenticationToken>.
Declaration
IEvent<TAuthenticationToken> Deserialise(RecordedEvent eventData)
Parameters
Type | Name | Description |
---|---|---|
EventStore.ClientAPI.RecordedEvent | eventData | The EventStore.ClientAPI.RecordedEvent to Deserialise. |
Returns
Type | Description |
---|---|
IEvent<TAuthenticationToken> |
Deserialise(ResolvedEvent)
Deserialise the provided notification
into an IEvent<TAuthenticationToken>.
Declaration
IEvent<TAuthenticationToken> Deserialise(ResolvedEvent notification)
Parameters
Type | Name | Description |
---|---|---|
EventStore.ClientAPI.ResolvedEvent | notification | The EventStore.ClientAPI.ResolvedEvent to Deserialise. |
Returns
Type | Description |
---|---|
IEvent<TAuthenticationToken> |
GetSerialisationSettings()
Gets the Newtonsoft.Json.JsonSerializerSettings used while Deserialising.
Declaration
JsonSerializerSettings GetSerialisationSettings()
Returns
Type | Description |
---|---|
Newtonsoft.Json.JsonSerializerSettings |