public void Complete(Exception exception) { // End the request _requestLifeTime.Complete(exception); // Dispose of the cancellation token subscription _registration.Dispose(); // Dispose any state on the transport _transport.Dispose(); }
public void Complete(Exception error) { _lifetime.Complete(error); _transport.Dispose(); if (_transport.AfterRequestEnd != null) { _transport.AfterRequestEnd(error); } }