C# Класс Open.Core.PackageBase

A set of script(s) and other dependencies with an entry-point method.
Наследование: ModelBase
Показать файл Открыть проект

Открытые методы

Метод Описание
Download ( System.Action onComplete ) : void

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

ToString ( ) : string

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

Download() публичный Метод

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.
Результат void

DownloadInternal() защищенный Метод

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).
Результат void

PackageBase() защищенный Метод

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]. ///
Результат System

SetDownloadError() защищенный Метод

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.
Результат void

ToString() публичный Метод

public ToString ( ) : string
Результат string