November Happy Hour will be moved to Thursday December 5th.

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

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.

Properties

Instance

A convenient accessor to the singleton instance.

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

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

Extension Methods