Documentation Coverage Report
Current view: top level - Cqrs/Authentication - SingleSignOnToken.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 System.ComponentModel.DataAnnotations;
      11             : using System.Runtime.Serialization;
      12             : 
      13             : namespace Cqrs.Authentication
      14             : {
      15             :         /// <summary>
      16             :         /// An authentication token with expiry and an issue time information.
      17             :         /// </summary>
      18             :         [Serializable]
      19             :         [DataContract]
      20             :         public class SingleSignOnToken : ISingleSignOnToken
      21           1 :         {
      22             :                 /// <summary>
      23             :                 /// The authentication token.
      24             :                 /// </summary>
      25             :                 [Required]
      26             :                 [DataMember]
      27             :                 public string Token { get; set; }
      28             : 
      29             :                 /// <summary>
      30             :                 /// The <see cref="DateTime"/> this token should expire.
      31             :                 /// </summary>
      32             :                 [Required]
      33             :                 [DataMember]
      34             :                 public DateTime TimeOfExpiry { get; set; }
      35             : 
      36             :                 /// <summary>
      37             :                 /// The <see cref="DateTime"/> this token was issued.
      38             :                 /// </summary>
      39             :                 [Required]
      40             :                 [DataMember]
      41             :                 public DateTime DateIssued { get; set; }
      42             : 
      43             :                 /// <summary>
      44             :                 /// Returns <see cref="Token"/>.
      45             :                 /// </summary>
      46             :                 /// <returns><see cref="Token"/>.</returns>
      47           1 :                 public virtual string Serialise()
      48             :                 {
      49             :                         return Token;
      50             :                 }
      51             :         }
      52             : }

Generated by: LCOV version 1.12