Beispiel #1
0
        public void CreateHost(ApplicationServer server, WebSource webSource)
        {
            string v = vpath;

            if (v != "/" && v.EndsWith("/"))
            {
                v = v.Substring(0, v.Length - 1);
            }

            AppHost        = ApplicationHost.CreateApplicationHost(webSource.GetApplicationHostType(), v, realPath) as IApplicationHost;
            AppHost.Server = server;

            if (!server.SingleApplication)
            {
                // Link the host in the application domain with a request broker in the main domain
                RequestBroker         = webSource.CreateRequestBroker();
                AppHost.RequestBroker = RequestBroker;
            }
        }
Beispiel #2
0
 public abstract Worker CreateWorker(Socket client, ApplicationServer server);
 public override Worker CreateWorker(Socket client, ApplicationServer server)
 {
     return(new XSPWorker(client, client.LocalEndPoint, server,
                          secureConnection, securityProtocol, cert, keyCB, allowClientCert, requireClientCert));
 }