public virtual void Configure(ulong requestId, int requestNumber, IApplicationHost appHost) { this.requestId = requestId; this.requestNumber = requestNumber; this.appHost = appHost; this.transport = appHost.AppHostTransport; }
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; // } }
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); }
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); }
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; // } }
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); }