C# Класс Open.Core.Common.Network.LoaderBase

Base class for objects that implement server loading functions.
Наследование: System.NotifyPropertyChangedBase
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
CheckForError System.Exception

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

Метод Описание
Handle_OpenReadCompleted ( object sender, TestableOpenReadCompletedEventArgs e ) : void
Load ( ) : void

Commences the load operation.

Implementers see the 'OnPreload' and 'OnLoadCallback' method.

Load ( System.Action callback ) : void

Commences the load operation, and invokes a callback on complete.

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

Метод Описание
GetUri ( ) : Uri

Retrieves the URI of the server location to access.

LoaderBase ( ) : System

Constructor.

LoaderBase ( TestableWebClient webClient ) : System

Constructor.

Inject a different client to teh constructor for testing purposes.

OnLoadCallback ( TestableOpenReadCompletedEventArgs e ) : void

Called after the load operation has completed.

Check the 'LoadError' property to see whether the operation was successful.

OnLoadFailed ( ) : void
OnLoaded ( ) : void
OnPreload ( ) : bool

Fired before the server call is initiated.

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

Метод Описание
CheckForError ( TestableOpenReadCompletedEventArgs e ) : Exception

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

GetUri() защищенный абстрактный Метод

Retrieves the URI of the server location to access.
protected abstract GetUri ( ) : Uri
Результат System.Uri

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

public Handle_OpenReadCompleted ( object sender, TestableOpenReadCompletedEventArgs e ) : void
sender object
e TestableOpenReadCompletedEventArgs
Результат void

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

Commences the load operation.
Implementers see the 'OnPreload' and 'OnLoadCallback' method.
public Load ( ) : void
Результат void

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

Commences the load operation, and invokes a callback on complete.
public Load ( System.Action callback ) : void
callback System.Action The callback to invoke.
Результат void

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

Constructor.
protected LoaderBase ( ) : System
Результат System

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

Constructor.
Inject a different client to teh constructor for testing purposes.
protected LoaderBase ( TestableWebClient webClient ) : System
webClient TestableWebClient The web client to use.
Результат System

OnLoadCallback() защищенный абстрактный Метод

Called after the load operation has completed.
Check the 'LoadError' property to see whether the operation was successful.
protected abstract OnLoadCallback ( TestableOpenReadCompletedEventArgs e ) : void
e TestableOpenReadCompletedEventArgs The event arguments containing information about the server call.
Результат void

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

protected OnLoadFailed ( ) : void
Результат void

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

protected OnLoaded ( ) : void
Результат void

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

Fired before the server call is initiated.
protected OnPreload ( ) : bool
Результат bool