public IISHandler() { _beginRequestHandler = BeginRequest; _endRequestHandler = EndRequest; _preSendRequestHeadersHandler = PreSendRequestHeaders; _preSendRequestContentHandler = PreSendRequestContent; _handler = new SimpleHttpHandler(); }
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(); }
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(); }