Exemple #1
0
 /// <summary>
 /// Get the endpoint for the blob service for the given storage account in this environment
 /// </summary>
 /// <param name="environment">The environment containing the storage account</param>
 /// <param name="storageAccountName">The name of the storage account</param>
 /// <param name="useHttps">True if https should be use din communicating with the storage service, otherwise false</param>
 /// <returns>The Uri of the blob service for the given service in the given environment</returns>
 public static Uri GetStorageBlobEndpoint(this IAzureEnvironment environment, string storageAccountName, bool useHttps = true)
 {
     return(new Uri(string.Format(environment.StorageBlobEndpointFormat(), useHttps ? "https" : "http", storageAccountName)));
 }