C# Class AssetPackager.Helpers.AssetsHelper

Contains helper methods for AssetList and Asset classes.
Mostrar archivo Open project: kpumuk/assetpackager.net

Public Methods

Method Description
FindAssetList ( ICollection assetLists, string name ) : AssetList

Searches asset list in a collection of AssetList objects by name.

GetGroups ( ICollection urls ) : ICollection

Gets a list of groups that are defined for URLs in the specified list.

LoadAssets ( ) : ICollection

Load assets from ~/App_Data/AssetPackager.xml XML file.

SerializeAssets ( ICollection assets ) : string

Serializes a list of Asset objects into a string using URL names.

Private Methods

Method Description
GetPage ( ) : Page
LoadAssetLists ( string configFile ) : List
ReadAsset ( XmlReader reader ) : Asset
ReadAssetList ( XmlReader reader ) : AssetList
ResolveAssetUrl ( string resourceName, string assembly, string type, string path ) : string

Method Details

FindAssetList() public static method

Searches asset list in a collection of AssetList objects by name.
public static FindAssetList ( ICollection assetLists, string name ) : AssetList
assetLists ICollection A collection of objects.
name string Asset list name.
return AssetPackager.Assets.AssetList

GetGroups() public static method

Gets a list of groups that are defined for URLs in the specified list.
public static GetGroups ( ICollection urls ) : ICollection
urls ICollection URLs list.
return ICollection

LoadAssets() public static method

Load assets from ~/App_Data/AssetPackager.xml XML file.
public static LoadAssets ( ) : ICollection
return ICollection

SerializeAssets() public static method

Serializes a list of Asset objects into a string using URL names.
public static SerializeAssets ( ICollection assets ) : string
assets ICollection List of objects to serialize.
return string