C# Class Telerik.Web.Mvc.WebAssetRegistry

The default web asset registry.
Inheritance: IWebAssetRegistry
Show file Open project: juanplopes/simple-telerik

Public Methods

Method Description
Locate ( string virtualPath, string version ) : string

Returns the correct virtual path based upon the debug mode and version.

Retrieve ( string id ) : WebAsset

Retrieves the web asset by specified id.

Store ( string contentType, WebAssetItemGroup assetGroup ) : string

Stores the specified asset group.

WebAssetRegistry ( bool isInDebugMode, ICacheManager cacheManager, IWebAssetLocator assetLocator, IUrlResolver urlResolver, IPathResolver pathResolver, IVirtualPathProvider virtualPathProvider ) : System

Initializes a new instance of the WebAssetRegistry class.

Private Methods

Method Description
Compress ( string target ) : string
CreateIdFrom ( MergedAsset mergedAsset ) : string
CreateMergedAssetFromConfiguration ( string id ) : MergedAsset
CreateMergedAssetFromUrl ( string id ) : MergedAsset
CreateMergedAssetWith ( string contentType, WebAssetItemGroup assetGroup ) : MergedAsset
CreateSerializer ( ) : System.Web.Script.Serialization.JavaScriptSerializer
Decode ( string target ) : string
Decompress ( string target ) : string
Deserialize ( string json ) : MergedAsset
Encode ( string target ) : string
EnsureAsset ( MergedAsset asset, string id ) : WebAssetHolder
GetWebAssetHolder ( string key ) : WebAssetHolder
ReplaceImagePath ( string baseDiretory, string content ) : string
Serialize ( MergedAsset mergedAsset ) : string

Method Details

Locate() public method

Returns the correct virtual path based upon the debug mode and version.
public Locate ( string virtualPath, string version ) : string
virtualPath string The virtual path.
version string The version.
return string

Retrieve() public method

Retrieves the web asset by specified id.
public Retrieve ( string id ) : WebAsset
id string The id.
return WebAsset

Store() public method

Stores the specified asset group.
public Store ( string contentType, WebAssetItemGroup assetGroup ) : string
contentType string Type of the content.
assetGroup WebAssetItemGroup The asset group.
return string

WebAssetRegistry() public method

Initializes a new instance of the WebAssetRegistry class.
public WebAssetRegistry ( bool isInDebugMode, ICacheManager cacheManager, IWebAssetLocator assetLocator, IUrlResolver urlResolver, IPathResolver pathResolver, IVirtualPathProvider virtualPathProvider ) : System
isInDebugMode bool if set to true [is in debug mode].
cacheManager ICacheManager The cache manager.
assetLocator IWebAssetLocator The asset locator.
urlResolver IUrlResolver The URL resolver.
pathResolver IPathResolver The path resolver.
virtualPathProvider IVirtualPathProvider The virtual path provider.
return System