private List <AzureSubscription> ListSubscriptionsFromPublishSettingsFile(string filePath, string environment) { if (string.IsNullOrEmpty(filePath) || !DataStore.FileExists(filePath)) { throw new ArgumentException("File path is not valid.", "filePath"); } return(PublishSettingsImporter.ImportAzureSubscription(DataStore.ReadFileAsStream(filePath), this, environment).ToList()); }
private List <WindowsAzureSubscription> ReadPublishSettings(Stream s) { return(PublishSettingsImporter.Import(s).ToList()); }