Ejemplo n.º 1
0
		public virtual void Configure (object appHostConfig, object webAppConfig, 
			IApplicationServer server, 
			IListenerTransport listenerTransport, 
			Type appHostTransportType, object transportConfig)
		{
			WebAppConfig appConfig = webAppConfig as WebAppConfig;
			if (appConfig != null) {
				vport = appConfig.VPort;
				vhost = appConfig.VHost;
				vpath = appConfig.VPath;
				path = appConfig.RealPath;
			}

			appServer = server;
			this.listenerTransport = listenerTransport;
			appHostTransport = (IApplicationHostTransport) Activator.CreateInstance (appHostTransportType);
			appHostTransport.Configure (this, transportConfig);
		}
Ejemplo n.º 2
0
        public virtual void Configure(object appHostConfig, object webAppConfig,
                                      IApplicationServer server,
                                      IListenerTransport listenerTransport,
                                      Type appHostTransportType, object transportConfig)
        {
            WebAppConfig appConfig = webAppConfig as WebAppConfig;

            if (appConfig != null)
            {
                vport = appConfig.VPort;
                vhost = appConfig.VHost;
                vpath = appConfig.VPath;
                path  = appConfig.RealPath;
            }

            appServer = server;
            this.listenerTransport = listenerTransport;
            appHostTransport       = (IApplicationHostTransport)Activator.CreateInstance(appHostTransportType);
            appHostTransport.Configure(this, transportConfig);
        }
Ejemplo n.º 3
0
        public virtual void Configure(object appHostConfig, object webAppConfig,
                                      IApplicationServer server,
                                      IListenerTransport listenerTransport,
                                      Type appHostTransportType, object transportConfig)
        {
            WebAppConfig appConfig = webAppConfig as WebAppConfig;

            if (appConfig != null)
            {
                vport = appConfig.VPort;
                vhost = appConfig.VHost;
                vpath = appConfig.VPath;
                path  = appConfig.RealPath;
            }

            appServer              = server;
            physicalRoot           = server.PhysicalRoot;
            this.listenerTransport = listenerTransport;
            appHostTransport       = (IApplicationHostTransport)Activator.CreateInstance(appHostTransportType);
            appHostTransport.Configure(this, transportConfig);
            Logger.Write(LogLevel.Debug, "Configured host in domain {0}, id={1}", AppDomain.CurrentDomain.FriendlyName, AppDomain.CurrentDomain.Id);
        }
Ejemplo n.º 4
0
		public virtual void Configure (object appHostConfig, object webAppConfig, 
			IApplicationServer server, 
			IListenerTransport listenerTransport, 
			Type appHostTransportType, object transportConfig)
		{
			WebAppConfig appConfig = webAppConfig as WebAppConfig;
			if (appConfig != null) {
				vport = appConfig.VPort;
				vhost = appConfig.VHost;
				vpath = appConfig.VPath;
				path = appConfig.RealPath;
			}

			appServer = server;
			physicalRoot = server.PhysicalRoot;
			this.listenerTransport = listenerTransport;
			appHostTransport = (IApplicationHostTransport) Activator.CreateInstance (appHostTransportType);
			appHostTransport.Configure (this, transportConfig);
			Logger.Write (LogLevel.Debug, "Configured host in domain {0}, id={1}", AppDomain.CurrentDomain.FriendlyName, AppDomain.CurrentDomain.Id);
		}