internal WebContext(IFeatureCollection features) { this.features = features; connection = new DefaultConnectionInfo(features); fRequest = features.Get <IHttpRequestFeature>(); fRequestCookies = new RequestCookiesFeature(features); fResponse = features.Get <IHttpResponseFeature>(); fWebSocket = features.Get <IHttpWebSocketFeature>(); }
void IFeatureCache.CheckFeaturesRevision() { if (_cachedFeaturesRevision != _features.Revision) { _request = null; _webSockets = null; _cachedFeaturesRevision = _features.Revision; } }
void IFeatureCache.CheckFeaturesRevision() { if (_cachedFeaturesRevision != _features.Revision) { _request = null; _webSockets = null; _cachedFeaturesRevision = _features.Revision; } }
public SockJsWebSocketFeature(IHttpWebSocketFeature httpWebSocketFeature) { _feature = httpWebSocketFeature; }
public SockJSWebSocketFeature(IHttpWebSocketFeature httpWebSocketFeature) { _feature = httpWebSocketFeature; }