Exemplo n.º 1
0
 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;
 }
Exemplo n.º 5
0
 public SockJSWebSocketFeature(IHttpWebSocketFeature httpWebSocketFeature)
 {
     _feature = httpWebSocketFeature;
 }