Class ApplicationDomainInitializer

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
Assembly: EPiServer.Framework.dll
Version: 8.11.0
Syntax
public class ApplicationDomainInitializer
Remarks

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

Constructors

ApplicationDomainInitializer()

Initializes a new instance of the ApplicationDomainInitializer class.

Declaration
public ApplicationDomainInitializer()

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

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.

Methods

PreApplicationStart()

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)

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()