Class ApplicationDomainInitializer

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes current application domain.

Inheritance
System.Object
ApplicationDomainInitializer
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Framework.Initialization.Internal
Assembly: EPiServer.Framework.AspNet.dll
Version: 11.20.7
Syntax
[ServiceConfiguration(typeof(IProbingPathResolver), FactoryMember = "Instance", Lifecycle = ServiceInstanceScope.Singleton)]
public class ApplicationDomainInitializer : IProbingPathResolver
Remarks

Since we have a subscription to the AppDomain.CurrentDomain.AssemblyResolve event this class will never be garbage collected.

Constructors

ApplicationDomainInitializer()

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the ApplicationDomainInitializer class.

Declaration
public ApplicationDomainInitializer()

ApplicationDomainInitializer(String, String, String, String[])

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the ApplicationDomainInitializer class.

Declaration
public ApplicationDomainInitializer(string relativeProbingPath, string applicationBase, string shadowCopyDirectories, string[] runtimeProbingPaths)
Parameters
Type Name Description
System.String relativeProbingPath

The relative probing path.

System.String applicationBase

The application base path.

System.String shadowCopyDirectories

The shadow copy directories.

System.String[] runtimeProbingPaths

The runtime probing paths.

Properties

Instance

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. A convenient accessor to the singleton instance.

Declaration
public static ApplicationDomainInitializer Instance { get; }
Property Value
Type Description
ApplicationDomainInitializer

Methods

PreApplicationStart()

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. This method should only be called by ASP.NET via the System.Web.PreApplicationStartMethodAttribute attribute defined in EPiServer.Framework

Declaration
public static void PreApplicationStart()

SetupAppDomain(HostType)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Setups the current app domain. Verifies probing path configuration in Framework and runtime. Adds Framework probing path to ShadowCopyDirectory of the current AppDomain

Declaration
public void SetupAppDomain(HostType hostType)
Parameters
Type Name Description
HostType hostType

SetupAspNetBuildProviders()

Declaration
public void SetupAspNetBuildProviders()

Extension Methods