Class VirtualPathRegistrationHandler
Handles the registration of virtual path providers with the hosting environment.
Inheritance
System.Object
VirtualPathRegistrationHandler
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.Web.Hosting
Assembly: EPiServer.Framework.dll
Version: 9.12.2Syntax
[ServiceConfiguration(Lifecycle = ServiceInstanceScope.Singleton)]
public class VirtualPathRegistrationHandler
Constructors
VirtualPathRegistrationHandler()
Declaration
public VirtualPathRegistrationHandler()
VirtualPathRegistrationHandler(IHostingEnvironment, ITypeScannerLookup)
Declaration
public VirtualPathRegistrationHandler(IHostingEnvironment hosting, ITypeScannerLookup typeLookup)
Parameters
Type | Name | Description |
---|---|---|
IHostingEnvironment | hosting | |
ITypeScannerLookup | typeLookup |
Properties
RegisteredVirtualPathProviders
Gets the registered virtual path providers instances.
Declaration
public IDictionary<VirtualPathProvider, ProviderSettings> RegisteredVirtualPathProviders { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.Web.Hosting.VirtualPathProvider, System.Configuration.ProviderSettings> | The registered virtual path providers. |
Methods
RegisterVirtualPathProviders(InitializationEngine, ProviderSettingsCollection)
Registers providers both from code implementing IVirtualPathProviderModule and providers from configuration
Declaration
public virtual void RegisterVirtualPathProviders(InitializationEngine context, ProviderSettingsCollection settings)
Parameters
Type | Name | Description |
---|---|---|
InitializationEngine | context | The installation context, if |
System.Configuration.ProviderSettingsCollection | settings | The provider settings, if |
RegisterVirtualPathProviders(ProviderSettingsCollection)
Registers the providers from the specified collection with the hosting environment
Declaration
public void RegisterVirtualPathProviders(ProviderSettingsCollection settings)
Parameters
Type | Name | Description |
---|---|---|
System.Configuration.ProviderSettingsCollection | settings | The provider collection. |
Remarks
This method does not support registering virtual path providers from code