public StorageAccount( string serviceName, string description, string locationOrAffinityGroup, LocationType locationType, StorageAccountType storageAccountType) : this() { Contract.Requires(!string.IsNullOrWhiteSpace(serviceName)); Contract.Requires(!string.IsNullOrWhiteSpace(description)); Contract.Requires(!string.IsNullOrWhiteSpace(locationOrAffinityGroup)); ServiceName = Label = serviceName; Description = description; if (locationType == LocationType.Region) { Location = locationOrAffinityGroup; } else { AffinityGroup = locationOrAffinityGroup; } AccountType = storageAccountType.ToString(); ExtendedProperties = new Dictionary<string, string>(); Endpoints = new List<Uri>(); SecondaryEndpoints = new List<Uri>(); }
public PtcAccount() { //StorageAccounts = new Dictionary<string, StorageAccount>(); token = new Dictionary<string, string>(); AccountType = new StorageAccountType(); }