Пример #1
0
 public IISHandler()
 {
     _beginRequestHandler = BeginRequest;
     _endRequestHandler = EndRequest;
     _preSendRequestHeadersHandler = PreSendRequestHeaders;
     _preSendRequestContentHandler = PreSendRequestContent;
     _handler = new SimpleHttpHandler();
 }
Пример #2
0
 public WcfHttpHost(ContentStorage storage, int port)
 {
     _uri = new Uri(String.Format("http://localhost:{0}/", port));
     _handler = new SimpleHttpHandler(storage);
     
     _host = new WebServiceHost(this);
     ServiceEndpoint pages = _host.AddServiceEndpoint(GetType(), new WebHttpBinding(), _uri);
     pages.Behaviors.Add(new WebHttpBehavior());
     _host.Open();
 }
Пример #3
0
        public WcfHttpHost(ContentStorage storage, int port)
        {
            _uri     = new Uri(String.Format("http://localhost:{0}/", port));
            _handler = new SimpleHttpHandler(storage);

            _host = new WebServiceHost(this);
            ServiceEndpoint pages = _host.AddServiceEndpoint(GetType(), new WebHttpBinding(), _uri);

            pages.Behaviors.Add(new WebHttpBehavior());
            _host.Open();
        }