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:
Wayne Foley
2014-05-01 08:59:17 -07:00
parent 0feeedb1c1
commit 33d59efcb6
2 changed files with 2 additions and 1 deletions

View File

@@ -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())))
{

View File

@@ -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();