C# Class Microsoft.WindowsAzure.Commands.Utilities.Common.AzureContextExtensions

Show file Open project: Azure/azure-powershell

Public Methods

Method Description
GetCurrentStorageAccount ( this context ) : Microsoft.WindowsAzure.Storage.CloudStorageAccount

Get the current storage account.

SetCurrentStorageAccount ( this context, IStorageContextProvider account ) : void

Set the current storage account using the given connection string.

SetCurrentStorageAccount ( this context, string connectionString ) : void

Set the current storage account using the given connection string

Method Details

GetCurrentStorageAccount() public static method

Get the current storage account.
public static GetCurrentStorageAccount ( this context ) : Microsoft.WindowsAzure.Storage.CloudStorageAccount
context this The current context.
return Microsoft.WindowsAzure.Storage.CloudStorageAccount

SetCurrentStorageAccount() public static method

Set the current storage account using the given connection string.
public static SetCurrentStorageAccount ( this context, IStorageContextProvider account ) : void
context this The current context.
account IStorageContextProvider A storage account.
return void

SetCurrentStorageAccount() public static method

Set the current storage account using the given connection string
public static SetCurrentStorageAccount ( this context, string connectionString ) : void
context this The current context.
connectionString string The connection string to check.
return void