C# Class NuGet.Services.Work.Client.WorkClient

Mostra file Open project: NuGet/NuGet.Services.Work

Public Methods

Method Description
WorkClient ( HttpClient client ) : System

Create a work service client from the specified HttpClient. This client MUST have a valid BaseAddress, as the WorkClient will always use relative URLs to request work service APIs. The BaseAddress should point at the root of the service, NOT at the work service node.

WorkClient ( Uri baseUri ) : System

Create a work service client from the specified base uri and credentials.

WorkClient ( Uri baseUri, ICredentials credentials ) : System

Create a work service client from the specified base uri and credentials.

Private Methods

Method Description
InitializeResources ( ) : void

Method Details

WorkClient() public method

Create a work service client from the specified HttpClient. This client MUST have a valid BaseAddress, as the WorkClient will always use relative URLs to request work service APIs. The BaseAddress should point at the root of the service, NOT at the work service node.
public WorkClient ( HttpClient client ) : System
client System.Net.Http.HttpClient The client to use
return System

WorkClient() public method

Create a work service client from the specified base uri and credentials.
public WorkClient ( Uri baseUri ) : System
baseUri System.Uri The URL to the root of the service
return System

WorkClient() public method

Create a work service client from the specified base uri and credentials.
public WorkClient ( Uri baseUri, ICredentials credentials ) : System
baseUri System.Uri The URL to the root of the service
credentials ICredentials The credentials to connect to the service with
return System