public object Create(object parent, object context, XmlNode section) { if (section.HasChildNodes) { ThrowException("Child nodes not allowed here", section.FirstChild); } HttpRuntimeConfig config = new HttpRuntimeConfig(parent); config.ApartmentThreading = AttBoolValue(section, "apartmentThreading", false); config.AppRequestQueueLimit = AttUIntValue(section, "appRequestQueueLimit", 100); config.DelayNotificationTimeout = AttUIntValue(section, "delayNotificationTimeout", 5); config.EnableHeaderChecking = AttBoolValue(section, "enableHeaderChecking", true); config.EnableKernelOutputCache = AttBoolValue(section, "enableKernelOutputCache", true); config.EnableVersionHeader = AttBoolValue(section, "enableVersionHeader", true); config.ExecutionTimeout = AttUIntValue(section, "executionTimeout", 90); config.MaxRequestLength = AttUIntValue(section, "maxRequestLength", 4096); config.MaxWaitChangeNotification = AttUIntValue(section, "maxWaitChangeNotification", 0); config.MinFreeThreads = AttUIntValue(section, "minFreeThreads", 8); config.MinLocalRequestFreeThreads = AttUIntValue(section, "minLocalRequestFreeThreads", 4); config.RequestLengthDiskThreshold = AttUIntValue(section, "requestLengthDiskThreshold", 256); config.SendCacheControlHeader = AttBoolValue(section, "sendCacheControlHeader", true); config.ShutdownTimeout = AttUIntValue(section, "shutdownTimeout", 90); config.UseFullyQualifiedRedirectUrl = AttBoolValue(section, "useFullyQualifiedRedirectUrl", false); config.WaitChangeNotification = AttUIntValue(section, "waitChangeNotification", 0); return(config); }
public object Create (object parent, object context, XmlNode section) { if (section.HasChildNodes) ThrowException ("Child nodes not allowed here", section.FirstChild); HttpRuntimeConfig config = new HttpRuntimeConfig (parent); config.ApartmentThreading = AttBoolValue (section, "apartmentThreading", false); config.AppRequestQueueLimit = AttUIntValue (section, "appRequestQueueLimit", 100); config.DelayNotificationTimeout = AttUIntValue (section, "delayNotificationTimeout", 5); config.EnableHeaderChecking = AttBoolValue (section, "enableHeaderChecking", true); config.EnableKernelOutputCache = AttBoolValue (section, "enableKernelOutputCache", true); config.EnableVersionHeader = AttBoolValue (section, "enableVersionHeader", true); config.ExecutionTimeout = AttUIntValue (section, "executionTimeout", 90); config.MaxRequestLength = AttUIntValue (section, "maxRequestLength", 4096); config.MaxWaitChangeNotification = AttUIntValue (section, "maxWaitChangeNotification", 0); config.MinFreeThreads = AttUIntValue (section, "minFreeThreads", 8); config.MinLocalRequestFreeThreads = AttUIntValue (section, "minLocalRequestFreeThreads", 4); config.RequestLengthDiskThreshold = AttUIntValue (section, "requestLengthDiskThreshold", 256); config.SendCacheControlHeader = AttBoolValue (section, "sendCacheControlHeader", true); config.ShutdownTimeout = AttUIntValue (section, "shutdownTimeout", 90); config.UseFullyQualifiedRedirectUrl = AttBoolValue (section, "useFullyQualifiedRedirectUrl", false); config.WaitChangeNotification = AttUIntValue (section, "waitChangeNotification", 0); return config; }
/* Only the config. handler should create instances of this. Use GetInstance (context) */ public HttpRuntimeConfig(object p) { HttpRuntimeConfig parent = p as HttpRuntimeConfig; if (parent != null) { Init(parent); } }
void Init (HttpRuntimeConfig parent) { ExecutionTimeout = parent.ExecutionTimeout; MaxRequestLength = parent.MaxRequestLength; RequestLengthDiskThreshold = parent.RequestLengthDiskThreshold; UseFullyQualifiedRedirectUrl = parent.UseFullyQualifiedRedirectUrl; MinFreeThreads = parent.MinFreeThreads; MinLocalRequestFreeThreads = parent.MinLocalRequestFreeThreads; AppRequestQueueLimit = parent.AppRequestQueueLimit; EnableKernelOutputCache = parent.EnableKernelOutputCache; EnableVersionHeader = parent.EnableVersionHeader; RequireRootSaveAsPath = parent.RequireRootSaveAsPath; IdleTimeout = parent.IdleTimeout; Enable = parent.Enable; }
public virtual object Create(Object parent, Object configContextObj, XmlNode section) { // if called through client config don't even load HttpRuntime if (!HandlerBase.IsServerConfiguration(configContextObj)) { return(null); } HttpRuntimeConfig config = new HttpRuntimeConfig((HttpRuntimeConfig)parent); config.LoadValuesFromConfigurationInput(section); return(config); }
void Init(HttpRuntimeConfig parent) { ApartmentThreading = parent.ApartmentThreading; DelayNotificationTimeout = parent.DelayNotificationTimeout; MaxWaitChangeNotification = parent.MaxWaitChangeNotification; SendCacheControlHeader = parent.SendCacheControlHeader; ShutdownTimeout = parent.ShutdownTimeout; UseFullyQualifiedRedirectUrl = parent.UseFullyQualifiedRedirectUrl; WaitChangeNotification = parent.WaitChangeNotification; ExecutionTimeout = parent.ExecutionTimeout; MaxRequestLength = parent.MaxRequestLength; RequestLengthDiskThreshold = parent.RequestLengthDiskThreshold; UseFullyQualifiedRedirectUrl = parent.UseFullyQualifiedRedirectUrl; MinFreeThreads = parent.MinFreeThreads; MinLocalRequestFreeThreads = parent.MinLocalRequestFreeThreads; AppRequestQueueLimit = parent.AppRequestQueueLimit; EnableKernelOutputCache = parent.EnableKernelOutputCache; EnableVersionHeader = parent.EnableVersionHeader; EnableHeaderChecking = parent.EnableHeaderChecking; }
void Init (HttpRuntimeConfig parent) { ApartmentThreading = parent.ApartmentThreading; DelayNotificationTimeout = parent.DelayNotificationTimeout; MaxWaitChangeNotification = parent.MaxWaitChangeNotification; SendCacheControlHeader = parent.SendCacheControlHeader; ShutdownTimeout = parent.ShutdownTimeout; UseFullyQualifiedRedirectUrl = parent.UseFullyQualifiedRedirectUrl; WaitChangeNotification = parent.WaitChangeNotification; ExecutionTimeout = parent.ExecutionTimeout; MaxRequestLength = parent.MaxRequestLength; RequestLengthDiskThreshold = parent.RequestLengthDiskThreshold; UseFullyQualifiedRedirectUrl = parent.UseFullyQualifiedRedirectUrl; MinFreeThreads = parent.MinFreeThreads; MinLocalRequestFreeThreads = parent.MinLocalRequestFreeThreads; AppRequestQueueLimit = parent.AppRequestQueueLimit; EnableKernelOutputCache = parent.EnableKernelOutputCache; EnableVersionHeader = parent.EnableVersionHeader; EnableHeaderChecking = parent.EnableHeaderChecking; }
internal HttpRuntimeConfig(HttpRuntimeConfig parent) { if (parent != null) { _executionTimeout = parent._executionTimeout; _maxRequestLength = parent._maxRequestLength; _useFullyQualifiedRedirectUrl = parent._useFullyQualifiedRedirectUrl; _minFreeThreads = parent._minFreeThreads; _minLocalRequestFreeThreads = parent._minLocalRequestFreeThreads; _appRequestQueueLimit = parent._appRequestQueueLimit; _shutdownTimeout = parent._shutdownTimeout; _delayNotificationTimeout = parent._delayNotificationTimeout; _waitChangeNotification = parent._waitChangeNotification; _maxWaitChangeNotification = parent._maxWaitChangeNotification; _enableKernelOutputCache = parent._enableKernelOutputCache; _enableVersionHeader = parent._enableVersionHeader; #if USE_REGEX_CSS_VALIDATION // ASURT 122278 _requestValidationRegex = parent._requestValidationRegex; #endif } }
public object Create (object parent, object context, XmlNode section) { if (section.HasChildNodes) ThrowException ("Child nodes not allowed here", section.FirstChild); HttpRuntimeConfig config = new HttpRuntimeConfig (parent); config.ExecutionTimeout = AttUIntValue (section, "executionTimeout", 90); config.MaxRequestLength = AttUIntValue (section, "maxRequestLength", 4096); config.RequestLengthDiskThreshold = AttUIntValue (section, "requestLengthDiskThreshold", 256); config.UseFullyQualifiedRedirectUrl = AttBoolValue (section, "useFullyQualifiedRedirectUrl", false); config.MinFreeThreads = AttUIntValue (section, "minFresThreads", 8); config.MinLocalRequestFreeThreads = AttUIntValue (section, "minLocalRequestFreeThreads", 4); config.AppRequestQueueLimit = AttUIntValue (section, "appRequestQueueLimit", 100); config.EnableKernelOutputCache = AttBoolValue (section, "requestLengthDiskThreshold", true); config.EnableVersionHeader = AttBoolValue (section, "requestLengthDiskThreshold", true); config.RequireRootSaveAsPath = AttBoolValue (section, "requestLengthDiskThreshold", true); config.IdleTimeout = AttUIntValue (section, "requestLengthDiskThreshold", 20); config.Enable = AttBoolValue (section, "requestLengthDiskThreshold", true); config.VersionHeader = AttValue (section, "versionHeader"); return config; }