November Happy Hour will be moved to Thursday December 5th.

Interface IClientResourceService

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

Namespace: EPiServer.Framework.Web.Resources
Assembly: EPiServer.Framework.dll
Version: 9.12.2
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>

RegisterRequiredResources(HttpContextBase)

Performs the registration of the required client resources.

Declaration
void RegisterRequiredResources(HttpContextBase context)
Parameters
Type Name Description
System.Web.HttpContextBase context

The HTTP context.

Extension Methods