CQRS.NET  4.0
A lightweight enterprise Function as a Service (FaaS) framework to write function based serverless and micro-service applications in hybrid multi-datacentre, on-premise and Azure environments.
Cqrs.Services.EventService< TAuthenticationToken > Class Template Reference

A WCF ServiceContract that provides read-only access to IEventStore<TAuthenticationToken> events raised with the same IMessage.CorrelationId. More...

+ Inheritance diagram for Cqrs.Services.EventService< TAuthenticationToken >:

Public Member Functions

virtual IServiceResponseWithResultData< IEnumerable< EventData > > GetEventData (IServiceRequestWithData< TAuthenticationToken, Guid > serviceRequest)
 Get all events raised with the same IMessage.CorrelationId. More...
 

Protected Member Functions

 EventService (IEventStore< TAuthenticationToken > eventStore, ILogger logger, ICorrelationIdHelper correlationIdHelper, IAuthenticationTokenHelper< TAuthenticationToken > authenticationTokenHelper)
 Instantiates a new instance of EventService<TAuthenticationToken>. More...
 
virtual void OnGetEventData (IServiceRequestWithData< TAuthenticationToken, Guid > serviceRequest)
 Executed before calling the IEventStore<TAuthenticationToken>.Get(System.Type,System.Guid,bool,int) method on EventStore in GetEventData. More...
 
virtual IEnumerable< EventDataOnGotEventData (IServiceRequestWithData< TAuthenticationToken, Guid > serviceRequest, IEnumerable< EventData > results)
 Executed after calling the IEventStore<TAuthenticationToken>.Get(System.Type,System.Guid,bool,int) method on EventStore in GetEventData. More...
 
virtual TServiceResponse CompleteResponse< TServiceResponse > (TServiceResponse serviceResponse)
 Sets the IServiceResponse.CorrelationId on the provided serviceResponse . More...
 

Properties

virtual IEventStore< TAuthenticationToken > EventStore [get]
 Gets or sets the IEventStore<TAuthenticationToken>. More...
 
IAuthenticationTokenHelper< TAuthenticationToken > AuthenticationTokenHelper [get]
 Gets or sets the IAuthenticationTokenHelper<TAuthenticationToken>. More...
 
ICorrelationIdHelper CorrelationIdHelper [get]
 Gets or sets the ILogger. More...
 
ILogger Logger [get]
 Gets or sets the ILogger. More...
 

Detailed Description

A WCF ServiceContract that provides read-only access to IEventStore<TAuthenticationToken> events raised with the same IMessage.CorrelationId.

Template Parameters
TAuthenticationTokenThe Type of authentication token.