Documentation Coverage Report
Current view: top level - Cqrs/Bus - BuiltInHashAlgorithmFactory.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.Security.Cryptography;
      10             : 
      11             : namespace Cqrs.Bus
      12             : {
      13             :         /// <summary>
      14             :         /// A factory for creating new instances of <see cref="HashAlgorithm"/>, used for signing network messages.
      15             :         /// </summary>
      16             :         public class BuiltInHashAlgorithmFactory : IHashAlgorithmFactory
      17           1 :         {
      18             :                 /// <summary>
      19             :                 /// Creates a new instance of <see cref="HashAlgorithm"/> using <see cref="SHA512.Create()"/>.
      20             :                 /// </summary>
      21           1 :                 public HashAlgorithm Create()
      22             :                 {
      23             :                         return SHA512.Create();
      24             :                 }
      25             :         }
      26             : }

Generated by: LCOV version 1.12