public CookiesWrapper(HttpContext context, CookiePolicyOptions options, IResponseCookiesFeature feature)
 {
     Context = context;
     Feature = feature;
     Policy = options;
 }
示例#2
0
 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;
     }
 }
 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 CookiesWrapper(HttpContext context, CookiePolicyOptions options, IResponseCookiesFeature feature)
 {
     Context = context;
     Feature = feature;
     Policy  = options;
 }
 public CookiesWrapperFeature(HttpContext context, CookiePolicyOptions options, IResponseCookiesFeature feature)
 {
     Wrapper = new CookiesWrapper(context, options, feature);
 }
示例#8
0
 public virtual void Uninitialize()
 {
     _context                = null;
     _responseFeature        = null;
     _responseCookiesFeature = null;
 }
示例#9
0
 public virtual void Initialize(HttpContext context)
 {
     _responseFeature        = context.Features.Get <IHttpResponseFeature>();
     _responseCookiesFeature = context.Features.Get <IResponseCookiesFeature>() ?? new ResponseCookiesFeature(context.Features);
 }