Class CqrsApiController<TAuthenticationToken>
A System.Web.Http.ApiController that expects the Token to be sent as a System.Net.Http.Headers.HttpHeaders with a key of "X-Token", in accordance with OAuth specifications
Inheritance
System.Object
System.Web.Http.ApiController
CqrsApiController<TAuthenticationToken>
Inherited Members
System.Web.Http.ApiController.ExecuteAsync(System.Web.Http.Controllers.HttpControllerContext, System.Threading.CancellationToken)
System.Web.Http.ApiController.Validate<TEntity>(TEntity)
System.Web.Http.ApiController.Validate<TEntity>(TEntity, System.String)
System.Web.Http.ApiController.BadRequest()
System.Web.Http.ApiController.BadRequest(System.String)
System.Web.Http.ApiController.BadRequest(System.Web.Http.ModelBinding.ModelStateDictionary)
System.Web.Http.ApiController.Conflict()
System.Web.Http.ApiController.Content<T>(System.Net.HttpStatusCode, T)
System.Web.Http.ApiController.Content<T>(System.Net.HttpStatusCode, T, System.Net.Http.Formatting.MediaTypeFormatter)
System.Web.Http.ApiController.Content<T>(System.Net.HttpStatusCode, T, System.Net.Http.Formatting.MediaTypeFormatter, System.String)
System.Web.Http.ApiController.Content<T>(System.Net.HttpStatusCode, T, System.Net.Http.Formatting.MediaTypeFormatter, System.Net.Http.Headers.MediaTypeHeaderValue)
System.Web.Http.ApiController.Created<T>(System.String, T)
System.Web.Http.ApiController.Created<T>(System.Uri, T)
System.Web.Http.ApiController.CreatedAtRoute<T>(System.String, System.Object, T)
System.Web.Http.ApiController.CreatedAtRoute<T>(System.String, System.Collections.Generic.IDictionary<System.String, System.Object>, T)
System.Web.Http.ApiController.InternalServerError()
System.Web.Http.ApiController.InternalServerError(System.Exception)
System.Web.Http.ApiController.Json<T>(T)
System.Web.Http.ApiController.Json<T>(T, Newtonsoft.Json.JsonSerializerSettings)
System.Web.Http.ApiController.Json<T>(T, Newtonsoft.Json.JsonSerializerSettings, System.Text.Encoding)
System.Web.Http.ApiController.NotFound()
System.Web.Http.ApiController.Ok()
System.Web.Http.ApiController.Ok<T>(T)
System.Web.Http.ApiController.Redirect(System.String)
System.Web.Http.ApiController.Redirect(System.Uri)
System.Web.Http.ApiController.RedirectToRoute(System.String, System.Object)
System.Web.Http.ApiController.RedirectToRoute(System.String, System.Collections.Generic.IDictionary<System.String, System.Object>)
System.Web.Http.ApiController.ResponseMessage(System.Net.Http.HttpResponseMessage)
System.Web.Http.ApiController.StatusCode(System.Net.HttpStatusCode)
System.Web.Http.ApiController.Unauthorized(System.Net.Http.Headers.AuthenticationHeaderValue[])
System.Web.Http.ApiController.Unauthorized(System.Collections.Generic.IEnumerable<System.Net.Http.Headers.AuthenticationHeaderValue>)
System.Web.Http.ApiController.Initialize(System.Web.Http.Controllers.HttpControllerContext)
System.Web.Http.ApiController.Dispose()
System.Web.Http.ApiController.Dispose(System.Boolean)
System.Web.Http.ApiController.Configuration
System.Web.Http.ApiController.ControllerContext
System.Web.Http.ApiController.ActionContext
System.Web.Http.ApiController.ModelState
System.Web.Http.ApiController.Request
System.Web.Http.ApiController.RequestContext
System.Web.Http.ApiController.Url
System.Web.Http.ApiController.User
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Cqrs.WebApi.dll
Syntax
public abstract class CqrsApiController<TAuthenticationToken> : CqrsApiController, IHttpController, IDisposable
Type Parameters
Name |
Description |
TAuthenticationToken |
|
Constructors
CqrsApiController(ILogger, ICorrelationIdHelper, IConfigurationManager, IAuthenticationTokenHelper<TAuthenticationToken>)
Declaration
protected CqrsApiController(ILogger logger, ICorrelationIdHelper correlationIdHelper, IConfigurationManager configurationManager, IAuthenticationTokenHelper<TAuthenticationToken> authenticationTokenHelper)
Parameters
Properties
AuthenticationTokenHelper
Declaration
protected IAuthenticationTokenHelper<TAuthenticationToken> AuthenticationTokenHelper { get; }
Property Value
Methods
CreateRequest()
Declaration
protected virtual IServiceRequest<TAuthenticationToken> CreateRequest()
Returns
CreateRequestWithData<TParameters>(Func<TParameters>)
Declaration
protected virtual IServiceRequestWithData<TAuthenticationToken, TParameters> CreateRequestWithData<TParameters>(Func<TParameters> createParameterDelegate = null)where TParameters : new ()
Parameters
Type |
Name |
Description |
System.Func<TParameters> |
createParameterDelegate |
|
Returns
Type Parameters
Name |
Description |
TParameters |
|
GetToken()
Declaration
protected override string GetToken()
Returns
Type |
Description |
System.String |
|
Overrides