UnbindContext() public method

public UnbindContext ( HttpListenerContext context ) : void
context HttpListenerContext
return void
Esempio n. 1
0
        public void Close()
        {
            if (o_stream != null)
            {
                Stream st = o_stream;
                st.Close();
                o_stream = null;
            }

            if (sock != null)
            {
                if (chunked && context.Response.ForceCloseChunked == false)
                {
                    // Don't close. Keep working.
                    chunked_uses++;
                    Init();
                    BeginReadRequest();
                    return;
                }

                Socket s = sock;
                sock = null;
                try {
                    s.Shutdown(SocketShutdown.Both);
                } finally {
                    s.Close();
                }
                if (context_bound)
                {
                    epl.UnbindContext(context);
                }
            }
        }
Esempio n. 2
0
 void Unbind()
 {
     if (context_bound)
     {
         epl.UnbindContext(context);
         context_bound = false;
     }
 }
Esempio n. 3
0
 private void Unbind()
 {
     if (_contextBound)
     {
         _epl.UnbindContext(_context);
         _contextBound = false;
     }
 }