Class EventBuilder<TAuthenticationToken>
Builds EventData from various input formats.
Inheritance
System.Object
EventBuilder<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 abstract class EventBuilder<TAuthenticationToken> : IEventBuilder<TAuthenticationToken>
Type Parameters
Name | Description |
---|---|
TAuthenticationToken | The System.Type of the authentication token. |
Methods
CreateFrameworkEvent(IEvent<TAuthenticationToken>)
Create an EventData with the provided eventData
.
Declaration
public virtual EventData CreateFrameworkEvent(IEvent<TAuthenticationToken> eventData)
Parameters
Type | Name | Description |
---|---|---|
IEvent<TAuthenticationToken> | eventData | The IEvent<TAuthenticationToken> to add to the EventData. |
Returns
Type | Description |
---|---|
EventData |
Implements
CreateFrameworkEvent(String, IEvent<TAuthenticationToken>)
Create an EventData with the provided eventData
.
Declaration
public virtual EventData CreateFrameworkEvent(string type, IEvent<TAuthenticationToken> eventData)
Parameters
Type | Name | Description |
---|---|---|
System.String | type | The name of the System.Type of the target object the serialised data is. |
IEvent<TAuthenticationToken> | eventData | The IEvent<TAuthenticationToken> to add to the EventData. |
Returns
Type | Description |
---|---|
EventData |
Implements
SerialiseEventData(IEvent<TAuthenticationToken>)
Serialise the provided eventData
into a System.Byte System.Array.
Declaration
protected virtual byte[] SerialiseEventData(IEvent<TAuthenticationToken> eventData)
Parameters
Type | Name | Description |
---|---|---|
IEvent<TAuthenticationToken> | eventData | The IEvent<TAuthenticationToken> to serialise. |
Returns
Type | Description |
---|---|
System.Byte[] |
SerialiseEventDataToString(IEvent<TAuthenticationToken>)
Serialise the provided eventData
into a System.String.
Declaration
protected abstract string SerialiseEventDataToString(IEvent<TAuthenticationToken> eventData)
Parameters
Type | Name | Description |
---|---|---|
IEvent<TAuthenticationToken> | eventData | The IEvent<TAuthenticationToken> to serialise. |
Returns
Type | Description |
---|---|
System.String |