C# Class Open.Core.PackageBase

A set of script(s) and other dependencies with an entry-point method.
Inheritance: ModelBase
Mostrar archivo Open project: philcockfield/Open.TestHarness.SL

Public Methods

Method Description
Download ( System.Action onComplete ) : void

Downloading the scripts and resources for the package (but does not invoke the EntryPoint method).

ToString ( ) : string

Protected Methods

Method Description
DownloadInternal ( System.Action onScriptsDownloaded, System.Action onTimedOut ) : void

Downloads the resources defined for the package.

PackageBase ( string entryPoint, string scriptUrls, string resourceUrls ) : System

Constructor.

SetDownloadError ( string message ) : void

Logs the given error message and assigns it to an Exception held within the 'LoadError' property.

Private Methods

Method Description
CreateScriptLoader ( ) : ScriptLoader
Download ( ) : void
DownloadScripts ( System.Action callback ) : void
FormatMethod ( string method ) : string
FormatUrl ( string url ) : string
InsertCssLinks ( ) : void
PackageBase ( string entryPoint ) : System
PackageBase ( string entryPoint, string scriptUrls ) : System

Method Details

Download() public method

Downloading the scripts and resources for the package (but does not invoke the EntryPoint method).
public Download ( System.Action onComplete ) : void
onComplete System.Action Action to invoke upon completion.
return void

DownloadInternal() protected method

Downloads the resources defined for the package.
protected DownloadInternal ( System.Action onScriptsDownloaded, System.Action onTimedOut ) : void
onScriptsDownloaded System.Action Invoked when the scripts have completed downloading.
onTimedOut System.Action Invoked when/if the operation times out (NB: 'onScriptsDownloaded' is never called if the operation times out).
return void

PackageBase() protected method

Constructor.
protected PackageBase ( string entryPoint, string scriptUrls, string resourceUrls ) : System
entryPoint string The entry point method to invoke.
scriptUrls string /// The paths to the script(s) required for the part. /// If multiple scripts a semi-colon (;) seperated list is expected. ///
resourceUrls string /// The paths to the resource file(s) that are required by the part (images, CSS). /// Multiple files are seperated by a semi-colon (;). /// Images (.png .jpg) are pre-loaded using the [ImagePreloader]. ///
return System

SetDownloadError() protected method

Logs the given error message and assigns it to an Exception held within the 'LoadError' property.
protected SetDownloadError ( string message ) : void
message string The error message.
return void

ToString() public method

public ToString ( ) : string
return string