public LongPollingTransportContext(LongPollingTransport transport, object state) { State = state; Transport = transport; }
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(); }
public MessageContext(LongPollingTransport longPollingTransport, RequestLifetime requestLifetime) { Transport = longPollingTransport; Lifetime = requestLifetime; }
private static Task WriteInit(LongPollingTransport transport) { transport.Context.Response.ContentType = transport.IsJsonp ? JsonUtility.JavaScriptMimeType : JsonUtility.JsonMimeType; return(transport.Context.Response.Flush()); }