/// <summary> /// Get the endpoint for the queue 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 used in communicating with the storage service, otherwise false</param> /// <returns>The Uri of the queue service for the given service in the given environment</returns> public static Uri GetStorageQueueEndpoint(this IAzureEnvironment environment, string storageAccountName, bool useHttps = true) { return(new Uri(string.Format(environment.StorageQueueEndpointFormat(), useHttps ? "https" : "http", storageAccountName))); }