/// <summary> /// Initializes a new instance of the <see cref="ThisApplication"/> class. /// </summary> public ThisApplication() { // Initialize application type based on the contexts test. isWcfService = false; applicationType = ThisApplicationType.NotSet; if (IsWebContext) applicationType = ThisApplicationType.WebApplication; else if (IsWcfContext) { applicationType = ThisApplicationType.WcfService; isWcfService = true; } }
/// <summary> /// Initializes a new instance of the <see cref="ThisApplication"/> class. /// </summary> public ThisApplication() { // Initialize application type based on the contexts test. isWcfService = false; applicationType = ThisApplicationType.NotSet; if (IsWebContext) { applicationType = ThisApplicationType.WebApplication; } else if (IsWcfContext) { applicationType = ThisApplicationType.WcfService; isWcfService = true; } }
internal void SetApplicationType(ThisApplicationType type) { applicationType = type; }