Share via


OAuthAuthorizationServerOptions.SystemClock Property

Used to know what the current clock time is when calculating or validaing token expiration. When not assigned default is based on DateTimeOffset.UtcNow. This is typically needed only for unit testing.

Namespace:  Microsoft.Owin.Security.OAuth
Assembly:  Microsoft.Owin.Security.OAuth (in Microsoft.Owin.Security.OAuth.dll)

Syntax

'Declaration
Public Property SystemClock As ISystemClock 
    Get 
    Set
'Usage
Dim instance As OAuthAuthorizationServerOptions 
Dim value As ISystemClock 

value = instance.SystemClock

instance.SystemClock = value
public ISystemClock SystemClock { get; set; }
public:
property ISystemClock^ SystemClock {
    ISystemClock^ get ();
    void set (ISystemClock^ value);
}
member SystemClock : ISystemClock with get, set
function get SystemClock () : ISystemClock 
function set SystemClock (value : ISystemClock)

Property Value

Type: Microsoft.Owin.Infrastructure.ISystemClock

See Also

Reference

OAuthAuthorizationServerOptions Class

Microsoft.Owin.Security.OAuth Namespace