Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 MvcHost(HttpListenerAcceptor acceptor, IConcoctApplication application)
 {
     this.acceptor = acceptor;
     this.application = application;
 }