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.CqrsApiController Class Reference

A ApiController that expects the ISingleSignOnToken.Token to be sent as a HttpHeaders with a key of "X-Token", in accordance with OAuth specifications More...

+ Inheritance diagram for Cqrs.WebApi.CqrsApiController:

Protected Member Functions

 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

ICorrelationIdHelper CorrelationIdHelper [get]
 
ILogger Logger [get]
 

Detailed Description

A ApiController that expects the ISingleSignOnToken.Token to be sent as a HttpHeaders with a key of "X-Token", in accordance with OAuth specifications

See https://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/creating-api-help-pages for details on adding WebApi Help Pages.