Documentation Coverage Report
Current view: top level - Cqrs/Configuration - SqlSampleRuntime.cs Hit Total Coverage
Version: 2.2 Artefacts: 2 2 100.0 %
Date: 2018-08-07 15:04:50

          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 System;
      10             : using cdmdotnet.Logging;
      11             : using Cqrs.Commands;
      12             : using Cqrs.Events;
      13             : 
      14             : namespace Cqrs.Configuration
      15             : {
      16             :         /// <summary>
      17             :         /// A <see cref="SampleRuntime{TAuthenticationToken,TCommandHanderOrEventHandler}"/> that uses SQL Server.
      18             :         /// </summary>
      19             :         /// <typeparam name="TAuthenticationToken">The <see cref="Type"/> of authentication token.</typeparam>
      20             :         /// <typeparam name="TCommandHanderOrEventHandler">The <see cref="Type"/> of any <see cref="ICommandHandle"/> or <see cref="IEventHandler"/>.</typeparam>
      21             :         public class SqlSampleRuntime<TAuthenticationToken, TCommandHanderOrEventHandler>
      22             :                 : SampleRuntime<TAuthenticationToken, TCommandHanderOrEventHandler>
      23           1 :         {
      24             :                 #region Overrides of SampleRuntime<TAuthenticationToken,TCommandHanderOrEventHandler>
      25             : 
      26             :                 /// <summary>
      27             :                 /// Sets the <see cref="SampleRuntime{TAuthenticationToken,TCommandHanderOrEventHandler}.EventStoreCreator"/> to use <see cref="InProcessEventStore{TAuthenticationToken}"/>
      28             :                 /// </summary>
      29           1 :                 protected override void SetEventStoreCreator()
      30             :                 {
      31             :                         EventStoreCreator = dependencyResolver => new SqlEventStore<TAuthenticationToken>(dependencyResolver.Resolve<IEventBuilder<TAuthenticationToken>>(), dependencyResolver.Resolve<IEventDeserialiser<TAuthenticationToken>>(), dependencyResolver.Resolve<ILogger>(), dependencyResolver.Resolve<IConfigurationManager>());
      32             :                 }
      33             : 
      34             :                 #endregion
      35             :         }
      36             : }

Generated by: LCOV version 1.12