コード例 #1
0
 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());
 }
コード例 #2
0
 private List <WindowsAzureSubscription> ReadPublishSettings(Stream s)
 {
     return(PublishSettingsImporter.Import(s).ToList());
 }