C# 클래스 Open.Core.Common.Network.LoaderBase

Base class for objects that implement server loading functions.
상속: System.NotifyPropertyChangedBase
파일 보기 프로젝트 열기: philcockfield/Open.TestHarness.SL

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