static MvcHost Create(IPEndPoint bindTo, string virtualPath, string physicalPath, IConcoctApplication application) { var uri = new Uri(virtualPath, UriKind.RelativeOrAbsolute); return new MvcHost(new HttpListenerAcceptor( bindTo, uri, new MvcRequestHandler(uri.IsAbsoluteUri ? uri.AbsolutePath : virtualPath, physicalPath)), application); }
MvcHost(HttpListenerAcceptor acceptor, IConcoctApplication application) { this.acceptor = acceptor; this.application = application; }