RequestPathBaseCookieBuilder.Build(HttpContext, DateTimeOffset) Method

Definition

Configures Path if not explicitly configured.

public:
 override Microsoft::AspNetCore::Http::CookieOptions ^ Build(Microsoft::AspNetCore::Http::HttpContext ^ context, DateTimeOffset expiresFrom);
public override Microsoft.AspNetCore.Http.CookieOptions Build (Microsoft.AspNetCore.Http.HttpContext context, DateTimeOffset expiresFrom);
override this.Build : Microsoft.AspNetCore.Http.HttpContext * DateTimeOffset -> Microsoft.AspNetCore.Http.CookieOptions
Public Overrides Function Build (context As HttpContext, expiresFrom As DateTimeOffset) As CookieOptions

Parameters

context
HttpContext

The HttpContext.

expiresFrom
DateTimeOffset

The time to use as the base for computing Expires.

Returns

The cookie options.

Applies to