Esempio n. 1
0
        private void CreateNewTransportHandler()
        {
            IDelegatingHandler innerHandler = InnerHandler;

            // Ask the ContinuationFactory to attach the proper handler given the Context's ITransportSettings.
            InnerHandler = ContinuationFactory(Context, null);

            innerHandler?.Dispose();
        }
Esempio n. 2
0
        protected virtual void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
                _innerHandler?.Dispose();
            }

            _disposed = true;
        }