C# Класс Microsoft.WindowsAzure.Commands.Utilities.Common.WindowsAzureProfile

This class is the entry point for all the persistent state related to azure connections, including current environment, subscriptions, etc.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddAccounts ( WindowsAzureEnvironment environment ) : string

Log in to the given environment, and download and add subscriptions for the given account in that environment.

AddEnvironment ( WindowsAzureEnvironment newEnvironment ) : void
AddSubscription ( WindowsAzureSubscription s ) : void
DestroyData ( ) : void

Destroy any saved data. Deletes the data store and removes any certificates from the certificate store.

ImportPublishSettings ( Stream stream ) : void
ImportPublishSettings ( string fileName ) : void
RemoveEnvironment ( string name ) : void
RemoveSubscription ( WindowsAzureSubscription s ) : void
ResetInstance ( ) : void

Reset the default instance, used when the instance has been replaced for testing.

UpdateEnvironment ( WindowsAzureEnvironment newEnvironment ) : void
UpdateSubscription ( WindowsAzureSubscription s ) : void
WindowsAzureProfile ( IProfileStore profileStore ) : System
WindowsAzureProfile ( IProfileStore profileStore, ITokenProvider tokenProvider ) : System

Create an instance of WindowsAzureProfile that stores data in the given store.

Приватные методы

Метод Описание
AddSubscriptionInternal ( WindowsAzureSubscription subscription ) : void
AddSubscriptions ( List newSubscriptions ) : void
GuardEnvironmentExistsAndNonPublic ( string name ) : void
IsPublicEnvironment ( string name ) : bool
Load ( ) : void
LoadEnvironmentData ( ProfileData data ) : void
LoadSubscriptionData ( ProfileData data ) : void
Save ( ) : void
SetEnvironmentData ( ProfileData data ) : void
SetSubscriptionData ( ProfileData data ) : void
UpdateDefaultSubscription ( WindowsAzureSubscription newDefault ) : void

Описание методов

AddAccounts() публичный Метод

Log in to the given environment, and download and add subscriptions for the given account in that environment.
public AddAccounts ( WindowsAzureEnvironment environment ) : string
environment WindowsAzureEnvironment environment that the subscription is in.
Результат string

AddEnvironment() публичный Метод

public AddEnvironment ( WindowsAzureEnvironment newEnvironment ) : void
newEnvironment WindowsAzureEnvironment
Результат void

AddSubscription() публичный Метод

public AddSubscription ( WindowsAzureSubscription s ) : void
s WindowsAzureSubscription
Результат void

DestroyData() публичный Метод

Destroy any saved data. Deletes the data store and removes any certificates from the certificate store.
public DestroyData ( ) : void
Результат void

ImportPublishSettings() публичный Метод

public ImportPublishSettings ( Stream stream ) : void
stream Stream
Результат void

ImportPublishSettings() публичный Метод

public ImportPublishSettings ( string fileName ) : void
fileName string
Результат void

RemoveEnvironment() публичный Метод

public RemoveEnvironment ( string name ) : void
name string
Результат void

RemoveSubscription() публичный Метод

public RemoveSubscription ( WindowsAzureSubscription s ) : void
s WindowsAzureSubscription
Результат void

ResetInstance() публичный статический Метод

Reset the default instance, used when the instance has been replaced for testing.
public static ResetInstance ( ) : void
Результат void

UpdateEnvironment() публичный Метод

public UpdateEnvironment ( WindowsAzureEnvironment newEnvironment ) : void
newEnvironment WindowsAzureEnvironment
Результат void

UpdateSubscription() публичный Метод

public UpdateSubscription ( WindowsAzureSubscription s ) : void
s WindowsAzureSubscription
Результат void

WindowsAzureProfile() публичный Метод

public WindowsAzureProfile ( IProfileStore profileStore ) : System
profileStore IProfileStore
Результат System

WindowsAzureProfile() публичный Метод

Create an instance of WindowsAzureProfile that stores data in the given store.
public WindowsAzureProfile ( IProfileStore profileStore, ITokenProvider tokenProvider ) : System
profileStore IProfileStore Data store to read and write from.
tokenProvider ITokenProvider Token provider used to look up Active Directory tokens
Результат System