C# Class NuGet.Services.Metadata.Catalog.CollectorHttpClient

Inheritance: System.Net.Http.HttpClient
Exibir arquivo Open project: NuGet/NuGet.Services.Metadata Class Usage Examples

Public Methods

Method Description
CollectorHttpClient ( ) : Newtonsoft.Json.Linq
CollectorHttpClient ( HttpMessageHandler handler ) : Newtonsoft.Json.Linq
GetGraphAsync ( Uri address ) : Task
GetGraphAsync ( Uri address, CancellationToken token ) : Task
GetJObjectAsync ( Uri address ) : Task
GetJObjectAsync ( Uri address, CancellationToken token ) : Task
GetStringAsync ( Uri address, CancellationToken token ) : Task

Protected Methods

Method Description
InReqCount ( ) : void

Private Methods

Method Description
ParseJObject ( string json ) : Newtonsoft.Json.Linq.JObject

Method Details

CollectorHttpClient() public method

public CollectorHttpClient ( ) : Newtonsoft.Json.Linq
return Newtonsoft.Json.Linq

CollectorHttpClient() public method

public CollectorHttpClient ( HttpMessageHandler handler ) : Newtonsoft.Json.Linq
handler System.Net.Http.HttpMessageHandler
return Newtonsoft.Json.Linq

GetGraphAsync() public method

public GetGraphAsync ( Uri address ) : Task
address System.Uri
return Task

GetGraphAsync() public method

public GetGraphAsync ( Uri address, CancellationToken token ) : Task
address System.Uri
token System.Threading.CancellationToken
return Task

GetJObjectAsync() public method

public GetJObjectAsync ( Uri address ) : Task
address System.Uri
return Task

GetJObjectAsync() public method

public GetJObjectAsync ( Uri address, CancellationToken token ) : Task
address System.Uri
token System.Threading.CancellationToken
return Task

GetStringAsync() public method

public GetStringAsync ( Uri address, CancellationToken token ) : Task
address System.Uri
token System.Threading.CancellationToken
return Task

InReqCount() protected method

protected InReqCount ( ) : void
return void