Class CqrsNinjectJobHost<TAuthenticationToken, TAuthenticationTokenHelper>
Execute command and event handlers in an Azure WebJob using Ninject
Inheritance
System.Object
CoreHost<TAuthenticationToken>
TelemetryCoreHost<TAuthenticationToken>
CqrsWebHost<TAuthenticationToken, TAuthenticationTokenHelper, WebJobHostModule>
CqrsNinjectJobHost<TAuthenticationToken, TAuthenticationTokenHelper>
Inherited Members
CqrsWebHost<TAuthenticationToken, TAuthenticationTokenHelper, WebJobHostModule>.GetEventBusModules()
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()
Namespace: Cqrs.Ninject.Azure.WebJobs
Assembly: Cqrs.Ninject.Azure.WebJobs.dll
Syntax
public class CqrsNinjectJobHost<TAuthenticationToken, TAuthenticationTokenHelper> : CqrsWebHost<TAuthenticationToken, TAuthenticationTokenHelper, WebJobHostModule> where TAuthenticationTokenHelper : class, IAuthenticationTokenHelper<TAuthenticationToken>
Type Parameters
Name | Description |
---|---|
TAuthenticationToken | |
TAuthenticationTokenHelper |
Properties
CoreHost
The CoreHost to run, WebJobs are console apps and console apps start via a static method, this is the instance that static method will actually run.
Declaration
protected static CoreHost<TAuthenticationToken> CoreHost { get; set; }
Property Value
Type | Description |
---|---|
CoreHost<TAuthenticationToken> |
PreRunAndBlockAction
An System.Action to run just before Microsoft.Azure.WebJobs.JobHost.RunAndBlock.
Declaration
protected static Action PreRunAndBlockAction { get; set; }
Property Value
Type | Description |
---|---|
System.Action |
Methods
StartHost()
Declaration
protected static void StartHost()
Remarks
Please set the following connection strings in app.config for this WebJob to run: AzureWebJobsDashboard and AzureWebJobsStorage Better yet, add them to your Azure portal so they can be changed at runtime without re-deploying or re-compiling.