Exemplo n.º 1
0
        internal Uri RegisterRequest(HttpListener listener)
        {
            lock (this) {
                if (hasRequest)
                {
                    throw new InvalidOperationException();
                }
                hasRequest = true;

                return(listener.RegisterHandler(this));
            }
        }