Class ClientResourceService
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Performs the registrations of required client resources by calling available IClientResourceRegistrator instances. Provides the list of required client resources combined in bundles.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Framework.Web.Resources.Internal
Assembly: EPiServer.Framework.AspNet.dll
Version: 11.20.7Syntax
[ServiceConfiguration(ServiceType = typeof(IClientResourceService), Lifecycle = ServiceInstanceScope.Hybrid)]
public class ClientResourceService : IClientResourceService
Constructors
ClientResourceService(IEnumerable<IClientResourceProvider>, IEnumerable<IClientResourceRegistrator>, IRequiredClientResourceList, ClientResourceOptions)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the ClientResourceService class.
Declaration
public ClientResourceService(IEnumerable<IClientResourceProvider> clientResourceProviders, IEnumerable<IClientResourceRegistrator> clientResourceRegisters, IRequiredClientResourceList requiredResources, ClientResourceOptions options)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IClientResourceProvider> | clientResourceProviders | The client resource providers. |
System.Collections.Generic.IEnumerable<IClientResourceRegistrator> | clientResourceRegisters | The client resource registers. |
IRequiredClientResourceList | requiredResources | The list of required client resources. |
ClientResourceOptions | options | The client resource options. |
Properties
ClientResourceRegisters
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.
Declaration
public IList<IClientResourceRegistrator> ClientResourceRegisters { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<IClientResourceRegistrator> |
RequiredClientResourceList
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.
Declaration
public IRequiredClientResourceList RequiredClientResourceList { get; }
Property Value
Type | Description |
---|---|
IRequiredClientResourceList |
Methods
GetClientResources(String)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.
Declaration
public 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[])
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.
Declaration
public 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)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.
Declaration
public IEnumerable<ClientResource> GetRequiredResources(string renderingArea)
Parameters
Type | Name | Description |
---|---|---|
System.String | renderingArea | The rendering area. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ClientResource> |