Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Microsoft.​AspNetCore.​Authentication.​Cookies.​CookieSlidingExpirationContext
Assembly: Microsoft.AspNetCore.Authentication.Cookies
Inheritance: object → BaseContext<​CookieAuthenticationOptions> → PropertiesContext<​CookieAuthenticationOptions> → PrincipalContext<​CookieAuthenticationOptions> → CookieSlidingExpirationContext
Context object passed to the CookieAuthenticationEvents OnCheckSlidingExpiration method.
Properties
ElapsedTime
The amount of time that has elapsed since the cookie was issued or renewed.
RemainingTime
The amount of time left until the cookie expires.
public
bool
ShouldRenew
If true, the cookie will be renewed. The initial value will be true if the elapsed time
is greater than the remaining time (e.g. more than 50% expired).
Principal
public
AuthenticationProperties
Properties
public
AuthenticationScheme
Scheme
public
CookieAuthenticationOptions
Options
HttpContext
Request
Response
Methods
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object