Documentation Coverage Report
Current view: top level - Ninject/Azure/Cqrs.Ninject.Azure.WebJobs - CqrsWebJobProgram.cs Hit Total Coverage
Version: 2.2 Artefacts: 3 3 100.0 %
Date: 2017-09-22

          Line data    Source code
       1             : #region Copyright
       2             : // // -----------------------------------------------------------------------
       3             : // // <copyright company="Chinchilla Software Limited">
       4             : // //   Copyright Chinchilla Software Limited. All rights reserved.
       5             : // // </copyright>
       6             : // // -----------------------------------------------------------------------
       7             : #endregion
       8             : 
       9             : using Cqrs.Authentication;
      10             : using Cqrs.Ninject.Azure.WebJobs;
      11             : 
      12             : /// <summary>
      13             : /// Starts the WebJob.
      14             : /// </summary>
      15             : public partial class CqrsWebJobProgram : CqrsNinjectJobHost<System.Guid, DefaultAuthenticationTokenHelper>
      16           1 : {
      17             :         /// <summary>
      18             :         /// Instantiate a new instance of <see cref="CqrsWebJobProgram"/>
      19             :         /// </summary>
      20           1 :         public CqrsWebJobProgram()
      21             :         {
      22             :                 System.Type commandOrEventType = null;
      23             :                 GetCommandOrEventType(ref commandOrEventType);
      24             :                 HandlerTypes = new[] { commandOrEventType };
      25             :         }
      26             : 
      27             :         /// <remarks>
      28             :         /// Please set the following connection strings in app.config for this WebJob to run:
      29             :         /// AzureWebJobsDashboard and AzureWebJobsStorage
      30             :         /// Better yet, add them to your Azure portal so they can be changed at runtime without re-deploying or re-compiling.
      31             :         /// </remarks>
      32           1 :         public static void Main()
      33             :         {
      34             :                 CoreHost = new CqrsWebJobProgram();
      35             :                 StartHost();
      36             :         }
      37             : 
      38             :         /// <summary>
      39             :         /// Use a partial class to set add a command or event handler here on <paramref name="commandOrEventType"/>
      40             :         /// </summary>
      41             :         partial void GetCommandOrEventType(ref System.Type commandOrEventType);
      42             : }

Generated by: LCOV version 1.10