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

Afficher le fichier Open project: NuGet/NuGet.Services.Work

Méthodes publiques

Méthode 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

Méthode Description
InitializeResources ( ) : void

Method Details

WorkClient() public méthode

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
Résultat System

WorkClient() public méthode

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
Résultat System

WorkClient() public méthode

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
Résultat System