C# Class Rackspace.Services.Identity.V2.ConoHaIdentityClient

This class extends the default IdentityClient implementation of OpenStack Identity Service V2 to address vendor-specific differences in various responses to HTTP API calls sent to the service.
Inheritance: IdentityClient
Show file Open project: crowdy/OpenStack-ConoHa Class Usage Examples

Public Methods

Method Description
ConoHaIdentityClient ( IAuthenticationService authenticationService, Uri baseAddress ) : System

Initializes a new instance of the ConoHaIdentityClient class with the specified fixed base address.

ConoHaIdentityClient ( Uri baseAddress ) : System

Initializes a new instance of the ConoHaIdentityClient class with the specified fixed base address.

PrepareGetApiVersionAsync ( ApiVersionId apiVersionId, CancellationToken cancellationToken ) : Task

Rackspace sends back the media-types property value wrapped in an additional JSON object, as opposed to the array OpenStack uses. This method overrides the behavior of the base OpenStack client to replace the unexpected structure with the correct layout prior to deserialization.

If required, the original response is available via the HttpResponseMessage.Content property of the response.

PrepareListExtensionsAsync ( CancellationToken cancellationToken ) : Task

Method Details

ConoHaIdentityClient() public method

Initializes a new instance of the ConoHaIdentityClient class with the specified fixed base address.
/// If is . /// /// If is not an absolute URI. ///
public ConoHaIdentityClient ( IAuthenticationService authenticationService, Uri baseAddress ) : System
authenticationService IAuthenticationService The authentication service to use for authenticating requests made to /// this service.
baseAddress System.Uri The base address of the Identity Service.
return System

ConoHaIdentityClient() public method

Initializes a new instance of the ConoHaIdentityClient class with the specified fixed base address.
/// If is . /// /// If is not an absolute URI. ///
public ConoHaIdentityClient ( Uri baseAddress ) : System
baseAddress System.Uri The base address of the Identity Service.
return System

PrepareGetApiVersionAsync() public method

Rackspace sends back the media-types property value wrapped in an additional JSON object, as opposed to the array OpenStack uses. This method overrides the behavior of the base OpenStack client to replace the unexpected structure with the correct layout prior to deserialization.

If required, the original response is available via the HttpResponseMessage.Content property of the response.

public PrepareGetApiVersionAsync ( ApiVersionId apiVersionId, CancellationToken cancellationToken ) : Task
apiVersionId ApiVersionId
cancellationToken System.Threading.CancellationToken
return Task

PrepareListExtensionsAsync() public method

public PrepareListExtensionsAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
return Task