minor fix to the ServiceClientManager to locate the client type as well as the credential. Also fixed a typo in the readme.
Change-Id: I3706ec45bc6581ffdca4f08fdb0d0b7aa8b0b7f9
This commit is contained in:
@@ -50,6 +50,7 @@ namespace OpenStack
|
||||
//Ensure that the assembly that contains this credential has had a chance to be service located.
|
||||
//This is, at least for now, the entry point for third-parties can extend the API/SDK.
|
||||
this.ServiceLocator.EnsureAssemblyRegistration(credential.GetType().GetTypeInfo().Assembly);
|
||||
this.ServiceLocator.EnsureAssemblyRegistration(typeof(T).GetTypeInfo().Assembly);
|
||||
|
||||
foreach (var serviceClientDef in this.serviceClientDefinitions.Where(s =>typeof(T).GetTypeInfo().IsAssignableFrom(s.Key.GetTypeInfo())))
|
||||
{
|
||||
|
||||
@@ -18,7 +18,7 @@ The following code will connect to Openstack, and print out all of the container
|
||||
var password = "password";
|
||||
var tenantId = "XXXXXXXXXXXXXX-Project";
|
||||
|
||||
var credential = new OpenstackCredential(authUri, userName, password, tenantId);
|
||||
var credential = new OpenStackCredential(authUri, userName, password, tenantId);
|
||||
var client = OpenStackClientFactory.CreateClient(credential);
|
||||
|
||||
await client.Connect();
|
||||
|
||||
Reference in New Issue
Block a user