C# Class MALClient.XShared.Comm.MagicalRawQueries.CsrfHttpClient

Client wrapped with token.
Inheritance: System.Net.Http.HttpClient
Mostra file Open project: Mordonus/MALClient Class Usage Examples

Public Methods

Method Description
CsrfHttpClient ( HttpClientHandler handler ) : System
ExpiredDispose ( ) : void
GetAsync ( string uri ) : Task
GetToken ( ) : System.Threading.Tasks.Task
PostAsync ( string uri, HttpContent content ) : Task

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

CsrfHttpClient() public method

public CsrfHttpClient ( HttpClientHandler handler ) : System
handler System.Net.Http.HttpClientHandler
return System

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

ExpiredDispose() public method

public ExpiredDispose ( ) : void
return void

GetAsync() public method

public GetAsync ( string uri ) : Task
uri string
return Task

GetToken() public method

public GetToken ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

PostAsync() public method

public PostAsync ( string uri, HttpContent content ) : Task
uri string
content System.Net.Http.HttpContent
return Task