Inheritance: ForeverTransport, ITransport
 public LongPollingTransportContext(LongPollingTransport transport, object state)
 {
     State = state;
     Transport = transport;
 }
示例#2
0
 public RequestLifetime(LongPollingTransport transport, HttpRequestLifeTime requestLifeTime, IDisposable registration)
 {
     _transport       = transport;
     _registration    = registration;
     _requestLifeTime = requestLifeTime;
 }
 private static Task WriteInit(LongPollingTransport transport)
 {
     transport.Context.Response.ContentType = transport.IsJsonp ? JsonUtility.JavaScriptMimeType : JsonUtility.JsonMimeType;
     return transport.Context.Response.Flush();
 }
示例#4
0
 public MessageContext(LongPollingTransport longPollingTransport, RequestLifetime requestLifetime)
 {
     Transport = longPollingTransport;
     Lifetime  = requestLifetime;
 }
示例#5
0
 public LongPollingTransportContext(LongPollingTransport transport, object state)
 {
     State     = state;
     Transport = transport;
 }
 private static Task WriteInit(LongPollingTransport transport)
 {
     transport.Context.Response.ContentType = transport.IsJsonp ? JsonUtility.JavaScriptMimeType : JsonUtility.JsonMimeType;
     return(transport.Context.Response.Flush());
 }
 public RequestLifetime(LongPollingTransport transport, HttpRequestLifeTime requestLifeTime, IDisposable registration)
 {
     _transport = transport;
     _registration = registration;
     _requestLifeTime = requestLifeTime;
 }
 public MessageContext(LongPollingTransport longPollingTransport, RequestLifetime requestLifetime)
 {
     Transport = longPollingTransport;
     Lifetime = requestLifetime;
 }