C# Class HttpAction.Action.AbstractHttpAction

Inheritance: IHttpAction
Datei anzeigen Open project: huoshan12345/iQQ.Net

Public Methods

Method Description
BuildRequest ( ) : HttpRequestItem
ExecuteAsync ( CancellationToken token ) : Task
HandleExceptionAsync ( Exception ex ) : Task
HandleResponse ( HttpResponseItem response ) : Task

Protected Methods

Method Description
AbstractHttpAction ( IHttpService httpHttpService ) : System
NotifyActionEventAsync ( ActionEvent actionEvent ) : Task
NotifyActionEventAsync ( ActionEventType type, object target = null ) : Task
NotifyOkActionEventAsync ( object target = null ) : Task

Method Details

AbstractHttpAction() protected method

protected AbstractHttpAction ( IHttpService httpHttpService ) : System
httpHttpService IHttpService
return System

BuildRequest() public abstract method

public abstract BuildRequest ( ) : HttpRequestItem
return HttpAction.Core.HttpRequestItem

ExecuteAsync() public method

public ExecuteAsync ( CancellationToken token ) : Task
token System.Threading.CancellationToken
return Task

HandleExceptionAsync() public method

public HandleExceptionAsync ( Exception ex ) : Task
ex System.Exception
return Task

HandleResponse() public abstract method

public abstract HandleResponse ( HttpResponseItem response ) : Task
response HttpAction.Core.HttpResponseItem
return Task

NotifyActionEventAsync() protected method

protected NotifyActionEventAsync ( ActionEvent actionEvent ) : Task
actionEvent ActionEvent
return Task

NotifyActionEventAsync() protected method

protected NotifyActionEventAsync ( ActionEventType type, object target = null ) : Task
type ActionEventType
target object
return Task

NotifyOkActionEventAsync() protected method

protected NotifyOkActionEventAsync ( object target = null ) : Task
target object
return Task