Class ClientResourceService
Performs the registrations of required client resources by calling available IClient
Inheritance
Implements
Namespace: EPiServer.Framework.Web.Resources.Internal
Assembly: EPiServer.Framework.AspNetCore.dll
Version: 12.0.3Syntax
public class ClientResourceService : Object, IClientResourceService
Constructors
ClientResourceService(IEnumerable<IClientResourceProvider>, IEnumerable<IClientResourceRegistrator>, IRequiredClientResourceList, ClientResourceOptions)
Initializes a new instance of the Client
Declaration
public ClientResourceService(IEnumerable<IClientResourceProvider> clientResourceProviders, IEnumerable<IClientResourceRegistrator> clientResourceRegisters, IRequiredClientResourceList requiredResources, ClientResourceOptions options)
Parameters
Type | Name | Description |
---|---|---|
System. |
clientResourceProviders | The client resource providers. |
System. |
clientResourceRegisters | The client resource registers. |
IRequired |
requiredResources | The list of required client resources. |
Client |
options | The client resource options. |
Properties
ClientResourceRegisters
Declaration
public IList<IClientResourceRegistrator> ClientResourceRegisters { get; }
Property Value
Type | Description |
---|---|
System. |
RequiredClientResourceList
Declaration
public IRequiredClientResourceList RequiredClientResourceList { get; }
Property Value
Type | Description |
---|---|
IRequired |
Methods
GetClientResources(String)
Gets all Client
Declaration
public 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
public 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
public IEnumerable<ClientResource> GetRequiredResources(string renderingArea)
Parameters
Type | Name | Description |
---|---|---|
System. |
renderingArea | The rendering area. |
Returns
Type | Description |
---|---|
System. |