Interface IClientResourceService
Provides methods to perform registration of required client resources and get registered resources.
Namespace: EPiServer.Framework.Web.Resources
Assembly: EPiServer.Framework.AspNetCore.dll
Version: 12.0.3Syntax
public interface IClientResourceService
Methods
GetClientResources(String)
Gets all Client
Declaration
IEnumerable<ClientResource> GetClientResources(string name)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | Client resources name. |
Returns
Type | Description |
---|---|
System. |
All available resources with specified name |
GetClientResources(String, ClientResourceType[])
Gets all Client
Declaration
IEnumerable<ClientResource> GetClientResources(string name, ClientResourceType[] resourceTypes)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | Client resources name. |
Client |
resourceTypes | Only get resources for these types. |
Returns
Type | Description |
---|---|
System. |
All available resources with specified name |
GetRequiredResources(String)
Gets the required client resources for specified rendering area.
Declaration
IEnumerable<ClientResource> GetRequiredResources(string renderingArea)
Parameters
Type | Name | Description |
---|---|---|
System. |
renderingArea | The rendering area. |
Returns
Type | Description |
---|---|
System. |