before porting to 2.0, the following code (CloudStorageAccount type was in the StorageClient namespace):
CloudStorageAccount cloudStorageAccount = CloudStorageAccount.Parse( RoleEnvironment.GetConfigurationSettingValue(wadConnectionString)); var roleInstanceDiagnosticManager = cloudStorageAccount.CreateRoleInstanceDiagnosticManager( RoleEnvironment.DeploymentId, RoleEnvironment.CurrentRoleInstance.Role.Name, RoleEnvironment.CurrentRoleInstance.Id);
StorageClient was removed in 2.0, so now I have to use
Microsoft.WindowsAzure.Storage.CloudStorageAccount
a bit of this type does not have a CreateRoleInstanceDiagnosticManager method
So how can I get the instance returned by CreateRoleInstanceDiagnosticManager earlier as I use it for my performance counters and logs
source share