LCOV - code coverage report
Current view: top level - Cqrs/Authentication - DefaultSingleSignOnTokenFactory.cs Hit Total Coverage
Test: doc-coverage.info Lines: 0 2 0.0 %
Date: 2017-07-26

          Line data    Source code
       1             : #region Copyright
       2             : // // -----------------------------------------------------------------------
       3             : // // <copyright company="cdmdotnet Limited">
       4             : // //   Copyright cdmdotnet Limited. All rights reserved.
       5             : // // </copyright>
       6             : // // -----------------------------------------------------------------------
       7             : #endregion
       8             : 
       9             : using System;
      10             : 
      11             : namespace Cqrs.Authentication
      12             : {
      13             :         public class DefaultSingleSignOnTokenFactory : SingleSignOnTokenFactory<SingleSignOnToken>, IDefaultSingleSignOnTokenFactory
      14           0 :         {
      15             :                 #region Implementation of IDefaultSingleSignOnTokenFactory
      16             : 
      17             :                 ISingleSignOnToken IDefaultSingleSignOnTokenFactory.RenewTokenExpiry(ISingleSignOnToken token, int timeoutInMinutes = 360)
      18             :                 {
      19             :                         return RenewTokenExpiry(token, timeoutInMinutes);
      20             :                 }
      21             : 
      22             :                 #endregion
      23             : 
      24           0 :                 public virtual TSingleSignOnToken RenewTokenExpiry<TSingleSignOnToken>(TSingleSignOnToken token, int timeoutInMinutes = 360)
      25             :                         where TSingleSignOnToken : ISingleSignOnToken
      26             :                 {
      27             :                         token.TimeOfExpiry = DateTime.UtcNow.AddMinutes(timeoutInMinutes);
      28             : 
      29             :                         return token;
      30             :                 }
      31             :         }
      32             : }

Generated by: LCOV version 1.10