static void OnCancelled(object obj) { Fx.Assert(obj != null, "obj should not be null."); HttpPipelineCancellationTokenSource thisPtr = (HttpPipelineCancellationTokenSource)obj; thisPtr.HandleCancelCallBack(); }
public NormalHttpPipeline(HttpRequestContext httpRequestContext, TransportIntegrationHandler transportIntegrationHandler) : base(httpRequestContext) { this.defaultSendTimeout = httpRequestContext.DefaultSendTimeout; this.cancellationTokenSource = new HttpPipelineCancellationTokenSource(httpRequestContext); Fx.Assert(transportIntegrationHandler != null, "transportIntegrationHandler should not be null."); this.transportIntegrationHandler = transportIntegrationHandler; }