System.Net.Http.OwinHttpMessageHandler.Dispose C# (CSharp) 메소드

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void
        protected override void Dispose(bool disposing)
        {
            base.Dispose(disposing);
            _disposed = true;
        }

Usage Example

예제 #1
0
        public void When_changing_cookie_container_after_disposing_then_then_should_throw()
        {
            var handler = new OwinHttpMessageHandler(AppFuncHelpers.NoopAppFunc);

            handler.Dispose();

            Action act = () => { handler.CookieContainer = new CookieContainer(); };

            act.ShouldThrow <InvalidOperationException>();
        }
All Usage Examples Of System.Net.Http.OwinHttpMessageHandler::Dispose