void IFeatureCache.CheckFeaturesRevision() { if (_cachedFeaturesRevision != _features.Revision) { _request = null; _query = null; _form = null; _cookies = null; _cachedFeaturesRevision = _features.Revision; } }
public HalHttpRequest(HttpContext context) { this.HttpContext = context ?? throw new ArgumentNullException(nameof(context)); this.queryFeature = context.Features.Get <IQueryFeature>() ?? throw new ArgumentException( "context should contain a IQueryFeature", nameof(context)); this.requestFeature = context.Features.Get <IHttpRequestFeature>() ?? throw new ArgumentException( "context should contain a IHttpRequestFeature", nameof(context)); this.requestCookiesFeature = context.Features.Get <IRequestCookiesFeature>(); }