C# Class OpenStack.Services.Identity.BaseIdentityServiceExtensions

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

Public Methods

Method Description
GetApiVersionAsync ( this service, ApiVersionId apiVersionId, CancellationToken cancellationToken ) : Task

Prepare and send an HTTP API call to obtain information about a particular version of the API available at the current endpoint for the service.

ListApiVersionsAsync ( this service, CancellationToken cancellationToken ) : Task>

Prepare and send an HTTP API call to obtain a list of API versions available at the current endpoint for a service.

Method Details

GetApiVersionAsync() public static method

Prepare and send an HTTP API call to obtain information about a particular version of the API available at the current endpoint for the service.
/// If is . /// -or- /// If is . /// /// If an error occurred during an HTTP request while preparing or sending the HTTP API call. ///
public static GetApiVersionAsync ( this service, ApiVersionId apiVersionId, CancellationToken cancellationToken ) : Task
service this The instance.
apiVersionId ApiVersionId The unique ID of the API version.
cancellationToken System.Threading.CancellationToken The that the task will observe.
return Task

ListApiVersionsAsync() public static method

Prepare and send an HTTP API call to obtain a list of API versions available at the current endpoint for a service.
/// if is . /// /// If an error occurred during an HTTP request while preparing or sending the HTTP API call. ///
public static ListApiVersionsAsync ( this service, CancellationToken cancellationToken ) : Task>
service this The instance.
cancellationToken System.Threading.CancellationToken The that the task will observe.
return Task>