Class DefaultEventBuilder<TAuthenticationToken>
Builds EventData from various input formats serialising as JSON.
Inheritance
System.Object
EventBuilder<TAuthenticationToken>
DefaultEventBuilder<TAuthenticationToken>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Cqrs.Events
Assembly: Cqrs.dll
Syntax
public class DefaultEventBuilder<TAuthenticationToken> : EventBuilder<TAuthenticationToken>, IEventBuilder<TAuthenticationToken>
Type Parameters
Name | Description |
---|---|
TAuthenticationToken | The System.Type of the authentication token. |
Properties
DefaultSettings
The default Newtonsoft.Json.JsonSerializerSettings to use.
Declaration
public static JsonSerializerSettings DefaultSettings { get; }
Property Value
Type | Description |
---|---|
Newtonsoft.Json.JsonSerializerSettings |
Methods
GetSerialisationSettings()
Returns DefaultSettings
Declaration
protected virtual JsonSerializerSettings GetSerialisationSettings()
Returns
Type | Description |
---|---|
Newtonsoft.Json.JsonSerializerSettings | DefaultSettings |
SerialiseEventDataToString(IEvent<TAuthenticationToken>)
Serialise the provided eventData
into JSON a System.String.
Declaration
protected override string SerialiseEventDataToString(IEvent<TAuthenticationToken> eventData)
Parameters
Type | Name | Description |
---|---|---|
IEvent<TAuthenticationToken> | eventData | The IEvent<TAuthenticationToken> to serialise. |
Returns
Type | Description |
---|---|
System.String |
Overrides
Cqrs.Events.EventBuilder<TAuthenticationToken>.SerialiseEventDataToString(Cqrs.Events.IEvent<TAuthenticationToken>)