C# Class OpenStack.Services.Identity.V2.IdentityServiceExtensions

This class defines extension methods for simplifying the use of the IIdentityService service in the "common" usage scenarios.
显示文件 Open project: crowdy/OpenStack-ConoHa

Public Methods

Method Description
AuthenticateAsync ( this service, AuthenticationRequest request, CancellationToken cancellationToken ) : Task

Prepare and send an HTTP API call to obtain a authenticate a set of credentials with the OpenStack Identity Service V2.

GetExtensionAsync ( this service, ExtensionAlias alias, CancellationToken cancellationToken ) : Task

Prepare and send an HTTP API call to obtain details for a specific extension available for the current OpenStack Identity Service V2 endpoint.

ListExtensionsAsync ( this service, CancellationToken cancellationToken ) : Task>

Prepare and send an HTTP API call to list the extensions available for the current OpenStack Identity Service V2 endpoint.

ListTenantsAsync ( this service, CancellationToken cancellationToken ) : Task>

Prepare and send an HTTP API call to list the tenants to which an authentication token has access.

Method Details

AuthenticateAsync() public static method

Prepare and send an HTTP API call to obtain a authenticate a set of credentials with the OpenStack Identity Service V2.
/// If is . /// /// If an error occurs during an HTTP request as part of preparing or sending the API call. ///
public static AuthenticateAsync ( this service, AuthenticationRequest request, CancellationToken cancellationToken ) : Task
service this The instance.
request AuthenticationRequest An object containing the credentials to /// authenticate.
cancellationToken System.Threading.CancellationToken The that the task will observe.
return Task

GetExtensionAsync() public static method

Prepare and send an HTTP API call to obtain details for a specific extension available for the current OpenStack Identity Service V2 endpoint.
/// If is . /// -or- /// If is . /// /// If an error occurs during an HTTP request as part of preparing or sending the API call. ///
public static GetExtensionAsync ( this service, ExtensionAlias alias, CancellationToken cancellationToken ) : Task
service this The instance.
alias ExtensionAlias The unique alias identifying the extension.
cancellationToken System.Threading.CancellationToken The that the task will observe.
return Task

ListExtensionsAsync() public static method

Prepare and send an HTTP API call to list the extensions available for the current OpenStack Identity Service V2 endpoint.
/// If is . /// /// If an error occurs during an HTTP request as part of preparing or sending the API call. ///
public static ListExtensionsAsync ( this service, CancellationToken cancellationToken ) : Task>
service this The instance.
cancellationToken System.Threading.CancellationToken The that the task will observe.
return Task>

ListTenantsAsync() public static method

Prepare and send an HTTP API call to list the tenants to which an authentication token has access.
/// If is . /// /// If an error occurs during an HTTP request as part of preparing or sending the API call. ///
public static ListTenantsAsync ( this service, CancellationToken cancellationToken ) : Task>
service this The instance.
cancellationToken System.Threading.CancellationToken The that the task will observe.
return Task>