Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Interface IClientResourceService

Provides methods to perform registration of required client resources and get registered resources.

Namespace: EPiServer.Framework.Web.Resources
Assembly: EPiServer.Framework.AspNet.dll
Version: 11.20.7
Syntax
public interface IClientResourceService

Methods

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>

Extension Methods