Documentation Coverage Report
Current view: top level - Cqrs/Services - ServiceResponseStateType.cs Hit Total Coverage
Version: 2.2 Artefacts: 1 1 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 System.Runtime.Serialization;
      11             : using Cqrs.Domain;
      12             : using Cqrs.Entities;
      13             : 
      14             : namespace Cqrs.Services
      15             : {
      16             :         /// <summary>
      17             :         /// The response state of a given request.
      18             :         /// </summary>
      19             :         [Serializable]
      20             :         [DataContract]
      21             :         public enum ServiceResponseStateType
      22           1 :         {
      23             :                 /// <summary>
      24             :                 /// The state is unknown.
      25             :                 /// </summary>
      26             :                 [EnumMember]
      27             :                 Unknown = 0,
      28             : 
      29             :                 /// <summary>
      30             :                 /// The request succeeded in being placed.
      31             :                 /// </summary>
      32             :                 [EnumMember(Value = "Succeeded")]
      33             :                 Succeeded = 1,
      34             : 
      35             :                 /// <summary>
      36             :                 /// The request failed with a fatal <see cref="Exception"/>.
      37             :                 /// </summary>
      38             :                 [EnumMember]
      39             :                 FailedWithAFatalException = 2,
      40             : 
      41             :                 /// <summary>
      42             :                 /// The request failed with an unknown, non-fatal <see cref="Exception"/>.
      43             :                 /// </summary>
      44             :                 [EnumMember]
      45             :                 FailedWithAnUnexpectedException = 3,
      46             : 
      47             :                 /// <summary>
      48             :                 /// The request failed to be authenticated.
      49             :                 /// </summary>
      50             :                 [EnumMember]
      51             :                 FailedAuthentication = 11,
      52             : 
      53             :                 /// <summary>
      54             :                 /// The request failed to be authorised.
      55             :                 /// </summary>
      56             :                 [EnumMember]
      57             :                 FailedAuthorisation = 12,
      58             : 
      59             :                 /// <summary>
      60             :                 /// The request failed validation.
      61             :                 /// </summary>
      62             :                 [EnumMember]
      63             :                 FailedValidation = 21,
      64             : 
      65             :                 /// <summary>
      66             :                 /// The request failed as the <see cref="IAggregateRoot{TAuthenticationToken}"/> was not found.
      67             :                 /// </summary>
      68             :                 [EnumMember]
      69             :                 AggregateNotFound = 31,
      70             : 
      71             :                 /// <summary>
      72             :                 /// The request failed as the <see cref="IEntity"/> was not found.
      73             :                 /// </summary>
      74             :                 [EnumMember]
      75             :                 EntityNotFound = 32,
      76             : 
      77             :                 /// <summary>
      78             :                 /// The request failed as the <see cref="Saga{TAuthenticationToken}"/> was not found.
      79             :                 /// </summary>
      80             :                 [EnumMember]
      81             :                 SagaNotFound = 33
      82             :         }
      83             : }

Generated by: LCOV version 1.12