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 IClientResourceServiceMethods
GetClientResources(String)
Gets all ClientResource from all IClientResourceProvider in the system and dynamically requested resources.
Declaration
IEnumerable<ClientResource> GetClientResources(string name)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | name | Client resources name. | 
Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.IEnumerable<ClientResource> | All available resources with specified name | 
GetClientResources(String, ClientResourceType[])
Gets all ClientResource from all IClientResourceProvider in the system and dynamically requested resources.
Declaration
IEnumerable<ClientResource> GetClientResources(string name, ClientResourceType[] resourceTypes)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | name | Client resources name. | 
| ClientResourceType[] | resourceTypes | Only get resources for these types. | 
Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.IEnumerable<ClientResource> | 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.String | renderingArea | The rendering area. | 
Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.IEnumerable<ClientResource> | 
