Class ClientResourceAggregator
Class use to aggregate all ClientResource from all IClientResourceProvider in the system
Inheritance
System.Object
ClientResourceAggregator
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Shell.Web.Resources
Assembly: EPiServer.Shell.dll
Version: 8.11.0Syntax
[Obsolete("Use EPiServer.Framework.Web.Resources.IClientResourceService implementation instead.")]
public class ClientResourceAggregator
Constructors
ClientResourceAggregator(IClientResourceService)
Initializes a new instance of the ClientResourceAggregator class.
Declaration
public ClientResourceAggregator(IClientResourceService clientResourceService)
Parameters
Type | Name | Description |
---|---|---|
IClientResourceService | clientResourceService | The client resource service. |
Methods
GetClientResources(String)
Gets all ClientResource from all IClientResourceProvider in the system.
Declaration
[Obsolete("This method has been moved to the IClientResourceService implementation, syntax: ServiceLocator.Current.GetInstance<IClientResourceService>().GetClientResources(location) .", false)]
public IEnumerable<ClientResource> GetClientResources(string location)
Parameters
Type | Name | Description |
---|---|---|
System.String | location | Only get resources for this location. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ClientResource> | All available resources for the specified location |
GetClientResources(String, ClientResourceType[])
Gets all ClientResource from all IClientResourceProvider in the system.
Declaration
[Obsolete("This method has been moved to the IClientResourceService implementation, syntax: ServiceLocator.Current.GetInstance<IClientResourceService>().GetClientResources(location, resourceTypes) .", false)]
public IEnumerable<ClientResource> GetClientResources(string location, ClientResourceType[] resourceTypes)
Parameters
Type | Name | Description |
---|---|---|
System.String | location | Only get resources for this location. |
ClientResourceType[] | resourceTypes | Only get resources for these types. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ClientResource> | All available resources for the specified location |