CQRS.NET  2.1
A lightweight enterprise framework to write CQRS, event-sourced and micro-service applications in hybrid multi-datacentre, on-premise and Azure environments.
Cqrs.WebApi.CqrsEventApiController< TSingleSignOnToken > Class Template Reference

A CqrsApiController that includes an implementation of the IEventService<TAuthenticationToken>.GetEventData method More...

+ Inheritance diagram for Cqrs.WebApi.CqrsEventApiController< TSingleSignOnToken >:

Protected Member Functions

 CqrsEventApiController (ILogger logger, ICorrelationIdHelper correlationIdHelper, IAuthenticationTokenHelper< TSingleSignOnToken > authenticationTokenHelper, IEventStore< TSingleSignOnToken > eventStore)
 
virtual IServiceResponseWithResultData< IEnumerable< EventData > > GetEventData (IServiceRequestWithData< TSingleSignOnToken, Guid > serviceRequest)
 Query for all the events that match the provided CorrelationId. More...
 
virtual void OnGetEventData (IServiceRequestWithData< TSingleSignOnToken, Guid > serviceRequest)
 
virtual IEnumerable< EventDataOnGotEventData (IServiceRequestWithData< TSingleSignOnToken, Guid > serviceRequest, IEnumerable< EventData > results)
 
- Protected Member Functions inherited from Cqrs.WebApi.CqrsApiController
 CqrsApiController (ILogger logger, ICorrelationIdHelper correlationIdHelper)
 
virtual string GetToken ()
 
virtual IServiceRequest< TSingleSignOnToken > CreateRequest< TSingleSignOnToken > ()
 
virtual IServiceRequestWithData< TSingleSignOnToken, TParameters > CreateRequestWithData< TSingleSignOnToken, TParameters > (Func< TParameters > createParameterDelegate=null)
 
virtual TSingleSignOnToken CreateAuthenticationToken< TSingleSignOnToken > ()
 
virtual TParameters CreateParameter< TParameters > ()
 
virtual DateTime GetDateTokenIssued ()
 
virtual DateTime GetTokenTimeOfExpiry ()
 
virtual TServiceResponse CompleteResponse< TServiceResponse > (TServiceResponse serviceResponse)
 

Properties

IAuthenticationTokenHelper< TSingleSignOnToken > AuthenticationTokenHelper [get]
 
virtual IEventStore< TSingleSignOnToken > EventStore [get]
 
- Properties inherited from Cqrs.WebApi.CqrsApiController
ICorrelationIdHelper CorrelationIdHelper [get]
 
ILogger Logger [get]
 

Additional Inherited Members

- Public Member Functions inherited from Cqrs.Services.IEventService< TSingleSignOnToken >
IServiceResponseWithResultData< IEnumerable< EventData > > GetEventData (IServiceRequestWithData< TAuthenticationToken, Guid > serviceRequest)
 

Detailed Description

A CqrsApiController that includes an implementation of the IEventService<TAuthenticationToken>.GetEventData method

Type Constraints
TSingleSignOnToken :ISingleSignOnToken 
TSingleSignOnToken :new()