public CookiesWrapper(HttpContext context, CookiePolicyOptions options, IResponseCookiesFeature feature) { Context = context; Feature = feature; Policy = options; }
public ResponseCookiesWrapper(HttpContext context, CookiePolicyOptions options, IResponseCookiesFeature feature, ILogger logger) { Context = context; Feature = feature; Options = options; _logger = logger; }
void IFeatureCache.CheckFeaturesRevision() { if (_cachedFeaturesRevision != _features.Revision) { _response = null; _cookies = null; _cachedFeaturesRevision = _features.Revision; } }
public CookiesWrapperFeature(HttpContext context, CookiePolicyOptions options, IResponseCookiesFeature feature) { Wrapper = new CookiesWrapper(context, options, feature); }
public virtual void Uninitialize() { _context = null; _responseFeature = null; _responseCookiesFeature = null; }
public virtual void Initialize(HttpContext context) { _responseFeature = context.Features.Get <IHttpResponseFeature>(); _responseCookiesFeature = context.Features.Get <IResponseCookiesFeature>() ?? new ResponseCookiesFeature(context.Features); }