private static IStorageManagementClient GetStorageClient(this Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet cmdlet)
        {
            if (_storageClientWrapper == null)
            {
                _storageClientWrapper = new StorageManagementClientWrapper(AzureRmProfileProvider.Instance.Profile.DefaultContext);
            }

            return(_storageClientWrapper.StorageManagementClient);
        }
예제 #2
0
        private static IStorageManagementClient GetStorageClient(this AzurePSCmdlet cmdlet)
        {
            if (_storageClientWrapper == null)
            {
                _storageClientWrapper = new StorageManagementClientWrapper(cmdlet.Profile.Context);
            }

            return(_storageClientWrapper.StorageManagementClient);
        }