Interface IEventService<TAuthenticationToken>
A WCF System.ServiceModel.ServiceContractAttribute that provides read-only access to IEventStore<TAuthenticationToken> IEvent<TAuthenticationToken> raised with the same CorrelationId.
Namespace: Cqrs.Services
Assembly: Cqrs.dll
Syntax
[ServiceContract(Namespace = "https://getcqrs.net/Domain/1001/")]
public interface IEventService<TAuthenticationToken>
Type Parameters
Name | Description |
---|---|
TAuthenticationToken | The System.Type of authentication token. |
Methods
GetEventData(IServiceRequestWithData<TAuthenticationToken, Guid>)
Get all IEvent<TAuthenticationToken> raised with the same CorrelationId.
Declaration
[OperationContract]
IServiceResponseWithResultData<IEnumerable<EventData>> GetEventData(IServiceRequestWithData<TAuthenticationToken, Guid> serviceRequest)
Parameters
Type | Name | Description |
---|---|---|
IServiceRequestWithData<TAuthenticationToken, System.Guid> | serviceRequest | The CorrelationId of the IEvent<TAuthenticationToken> to find. |
Returns
Type | Description |
---|---|
IServiceResponseWithResultData<System.Collections.Generic.IEnumerable<EventData>> |