Interface IModuleResourceResolver
Signature for component that resolves virtual paths for modules (for example shell modules).
Namespace: EPiServer.Framework.Modules
Assembly: EPiServer.Framework.dll
Version: 10.10.4Syntax
public interface IModuleResourceResolver
Properties
ProtectedRootPath
Gets the root path for protected resources
Declaration
string ProtectedRootPath { get; }
Property Value
Type | Description |
---|---|
System.String |
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.String | moduleName | The name of the module to resolve the path for |
System.String | moduleRelativePath | The path relative for the module |
Returns
Type | Description |
---|---|
System.String | 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.String | moduleName | The name of the module to resolve the path for |
System.String | moduleRelativePath | The path relative for the module |
Returns
Type | Description |
---|---|
System.String | 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.Reflection.Assembly | assembly | The assembly to resolve the path for |
System.String | relativePath | The path relative for the assembly |
System.String | resolvedPath | The resolved path. |
Returns
Type | Description |
---|---|
System.Boolean | 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.Reflection.Assembly | assembly | The assembly to resolve the path for |
System.String | relativePath | The path relative for the assembly |
System.String | resolvedPath | The resolved path. |
Returns
Type | Description |
---|---|
System.Boolean | true if the module supports relative resources else false. |