Ejemplo n.º 1
0
 public virtual void Configure(ulong requestId, int requestNumber, IApplicationHost appHost)
 {
     this.requestId     = requestId;
     this.requestNumber = requestNumber;
     this.appHost       = appHost;
     this.transport     = appHost.AppHostTransport;
 }
Ejemplo n.º 2
0
		public virtual void Configure(ulong requestId, int requestNumber, IApplicationHost appHost)
		{
			this.requestId = requestId;
			this.requestNumber = requestNumber;
			this.appHost = appHost;
			this.transport = appHost.AppHostTransport;
		}
        public AspNetNativeWebRequest(ulong requestId, int requestNumber, IApplicationHost appHost, IApplicationHostTransport transport,
                                      bool addTrailingSlash) : base(appHost)
        {
            this.requestId     = requestId;
            this.requestNumber = requestNumber;
            knownHeaders       = new string[HttpWorkerRequest.RequestHeaderMaximum];

            this.transport        = transport;
            this.addTrailingSlash = addTrailingSlash;
            //			try {
            //				//TODO: cache paths
            //				Paths.GetPathsFromUri (appHost, GetHttpVerbName (), GetFilePath (), out file_path, out path_info);
            //			} catch {
            //				path_info = null;
            //				file_path = null;
            //			}
        }
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;
			this.listenerTransport = listenerTransport;
			appHostTransport = (IApplicationHostTransport) Activator.CreateInstance (appHostTransportType);
			appHostTransport.Configure (this, transportConfig);
		}
Ejemplo n.º 5
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.º 6
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);
        }
		public AspNetNativeWebRequest (ulong requestId, int requestNumber, IApplicationHost appHost, IApplicationHostTransport transport,
			bool addTrailingSlash) : base (appHost)
		{
			this.requestId = requestId;
			this.requestNumber = requestNumber;
			knownHeaders = new string[HttpWorkerRequest.RequestHeaderMaximum];

			this.transport = transport;
			this.addTrailingSlash = addTrailingSlash;
			//			try {
			//				//TODO: cache paths
			//				Paths.GetPathsFromUri (appHost, GetHttpVerbName (), GetFilePath (), out file_path, out path_info);
			//			} catch {
			//				path_info = null;
			//				file_path = null;
			//			}
		}
Ejemplo n.º 8
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);
		}