Interface IEventBuilder<TAuthenticationToken>
Builds EventStore.ClientAPI.EventData from various input formats.
Namespace: Cqrs.EventStore
Assembly: Cqrs.EventStore.dll
Syntax
public interface IEventBuilder<TAuthenticationToken>
Type Parameters
Name | Description |
---|---|
TAuthenticationToken | The System.Type of the authentication token. |
Methods
CreateClientConnectedEvent(String)
Create an EventStore.ClientAPI.EventData that notifies people a client has connected.
Declaration
EventData CreateClientConnectedEvent(string clientName)
Parameters
Type | Name | Description |
---|---|---|
System.String | clientName | The name of the client that has connected. |
Returns
Type | Description |
---|---|
EventStore.ClientAPI.EventData |
CreateFrameworkEvent(IEvent<TAuthenticationToken>)
Create an EventStore.ClientAPI.EventData with the provided eventData
.
Declaration
EventData CreateFrameworkEvent(IEvent<TAuthenticationToken> eventData)
Parameters
Type | Name | Description |
---|---|---|
IEvent<TAuthenticationToken> | eventData | The IEvent<TAuthenticationToken> to add to the EventStore.ClientAPI.EventData. |
Returns
Type | Description |
---|---|
EventStore.ClientAPI.EventData |
CreateFrameworkEvent(String)
Create an EventStore.ClientAPI.EventData from the provided eventDataBody
.
Declaration
EventData CreateFrameworkEvent(string eventDataBody)
Parameters
Type | Name | Description |
---|---|---|
System.String | eventDataBody | A JSON string of serialised data. |
Returns
Type | Description |
---|---|
EventStore.ClientAPI.EventData |
CreateFrameworkEvent(String, IEvent<TAuthenticationToken>)
Create an EventStore.ClientAPI.EventData with the provided eventData
.
Declaration
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 EventStore.ClientAPI.EventData. |
Returns
Type | Description |
---|---|
EventStore.ClientAPI.EventData |
CreateFrameworkEvent(String, String)
Create an EventStore.ClientAPI.EventData from the provided eventDataBody
.
Declaration
EventData CreateFrameworkEvent(string type, string eventDataBody)
Parameters
Type | Name | Description |
---|---|---|
System.String | type | The name of the System.Type of the target object the serialised data is. |
System.String | eventDataBody | A JSON string of serialised data. |
Returns
Type | Description |
---|---|
EventStore.ClientAPI.EventData |