Compartir a través de


OAuthBearerAuthenticationOptions.SystemClock Property

 

Used to know what the current clock time is when calculating or validating 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

public ISystemClock SystemClock { get; set; }
public:
property ISystemClock^ SystemClock {
    ISystemClock^ get();
    void set(ISystemClock^ value);
}
member SystemClock : ISystemClock with get, set
Public Property SystemClock As ISystemClock

Property Value

Type: Microsoft.Owin.Infrastructure.ISystemClock

Returns ISystemClock.

See Also

OAuthBearerAuthenticationOptions Class
Microsoft.Owin.Security.OAuth Namespace

Return to top