Interface IModuleResourceResolver
Signature for component that resolves virtual paths for modules (for example shell modules).
Namespace: EPiServer.Framework.Modules
Assembly: EPiServer.Framework.dll
Version: 12.0.3Syntax
public interface IModuleResourceResolver
Properties
ProtectedRootPath
Gets the root path for protected resources
Declaration
string ProtectedRootPath { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
ResolveClientPath(String, String)
Resolves the path for a client side resource for a module (for example a shell module)
Declaration
string ResolveClientPath(string moduleName, string moduleRelativePath)
Parameters
Type | Name | Description |
---|---|---|
System. |
moduleName | The name of the module to resolve the path for |
System. |
moduleRelativePath | The path relative for the module |
Returns
Type | Description |
---|---|
System. |
The resolved path. |
ResolvePath(String, String)
Resolves the path for a server side resource for a module (for example a shell module)
Declaration
string ResolvePath(string moduleName, string moduleRelativePath)
Parameters
Type | Name | Description |
---|---|---|
System. |
moduleName | The name of the module to resolve the path for |
System. |
moduleRelativePath | The path relative for the module |
Returns
Type | Description |
---|---|
System. |
The resolved path. |
TryResolveClientPath(Assembly, String, out String)
Resolves the path for a client side resource for an assembly (that is for example part of a shell module)
Declaration
bool TryResolveClientPath(Assembly assembly, string relativePath, out string resolvedPath)
Parameters
Type | Name | Description |
---|---|---|
System. |
assembly | The assembly to resolve the path for |
System. |
relativePath | The path relative for the assembly |
System. |
resolvedPath | The resolved path. |
Returns
Type | Description |
---|---|
System. |
true if the module supports relative resources else false. |
TryResolvePath(Assembly, String, out String)
Resolves the path for a server side resource for an assembly (that is for example part of a shell module)
Declaration
bool TryResolvePath(Assembly assembly, string relativePath, out string resolvedPath)
Parameters
Type | Name | Description |
---|---|---|
System. |
assembly | The assembly to resolve the path for |
System. |
relativePath | The path relative for the assembly |
System. |
resolvedPath | The resolved path. |
Returns
Type | Description |
---|---|
System. |
true if the module supports relative resources else false. |