Interface IEventBuilder<TAuthenticationToken>
Builds EventData from various input formats.
Namespace: Cqrs.Events
Assembly: Cqrs.dll
Syntax
public interface 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
EventData CreateFrameworkEvent(IEvent<TAuthenticationToken> eventData)
Parameters
Type | Name | Description |
---|---|---|
IEvent<TAuthenticationToken> | eventData | The IEvent<TAuthenticationToken> to add to the EventData. |
Returns
Type | Description |
---|---|
EventData |
CreateFrameworkEvent(String, IEvent<TAuthenticationToken>)
Create an 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 EventData. |
Returns
Type | Description |
---|---|
EventData |