C# Class SenseNet.Portal.UI.Bundling.Bundle

Class for bunding multiple files into one.
显示文件 Open project: maxpavlov/FlexNet Class Usage Examples

Public Methods

Method Description
AddPath ( string path ) : void

Adds a path to the bundle with the order of 0.

AddPath ( string path, int order ) : void

Adds a path to the bundle with the specified order.

Bundle ( ) : System

Creates a new instance of the Bundle class.

Close ( ) : void

Closes the current bundle. It's not possible to reopen.

Combine ( ) : string

Combines the files in this bundle into one.

Protected Methods

Method Description
GetTextFromPath ( string path ) : string

Gets the text content from a given path and processes it. Override this method if you want to implement custom logic when each file is loaded.

Method Details

AddPath() public method

Adds a path to the bundle with the order of 0.
public AddPath ( string path ) : void
path string The path to add to the bundle.
return void

AddPath() public method

Adds a path to the bundle with the specified order.
public AddPath ( string path, int order ) : void
path string The path to add to the bundle.
order int The specified order.
return void

Bundle() public method

Creates a new instance of the Bundle class.
public Bundle ( ) : System
return System

Close() public method

Closes the current bundle. It's not possible to reopen.
public Close ( ) : void
return void

Combine() public method

Combines the files in this bundle into one.
public Combine ( ) : string
return string

GetTextFromPath() protected method

Gets the text content from a given path and processes it. Override this method if you want to implement custom logic when each file is loaded.
protected GetTextFromPath ( string path ) : string
path string The path from which to the content should be retrieved.
return string