Owin.Host.MonoHttpListener.RequestProcessing.OwinHttpListenerContext.Dispose C# (CSharp) Method

Dispose() public method

public Dispose ( ) : void
return void
        public void Dispose()
        {
            Dispose(true);
        }

Same methods

OwinHttpListenerContext::Dispose ( bool disposing ) : void

Usage Example

 private void EndRequest(OwinHttpListenerContext owinContext, Exception ex)
 {
     // TODO: Log the exception, if any
     Interlocked.Decrement(ref _currentOutstandingRequests);
     if (owinContext != null)
     {
         owinContext.End(ex);
         owinContext.Dispose();
     }
     // Make sure we start the next request on a new thread, need to prevent stack overflows.
     OffloadStartNextRequest();
 }