Owin.Host.MonoHttpListener.RequestProcessing.OwinHttpListenerContext.End C# (CSharp) Méthode

End() private méthode

private End ( ) : void
Résultat void
        private void End()
        {
            try
            {
                _disconnectRegistration.Dispose();
            }
            catch (ObjectDisposedException)
            {
                // CTR.Dispose() may throw an ODE on 4.0 if the CTS has previously been disposed.  Removed in 4.5.
            }
            _owinResponse.End();
        }

Same methods

OwinHttpListenerContext::End ( Exception ex ) : 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();
 }