/// <summary> /// A fully qualified Azure Service Bus connection string. /// </summary> /// <remarks> /// This value will contain all the security keys and values. /// </remarks> public static string AzureServiceConnectionString(this EnvironmentType environment) { string newValue = environment.AzureServiceConnectionTemplate() .Replace(TemplatePieceServiceName, environment.AzureServiceName()) .Replace(TemplatePieceKeyName, environment.AzureServiceKeyName()) .Replace(TemplatePieceKey, environment.AzureServiceKeyValue()); return(newValue); }
/// <summary> /// The basic piece of the ConnectionString that can identify the Azure Service but not enough to connect nor expose the security elements. /// </summary> public static string AzureServiceBaseUri(this EnvironmentType environment) => string.Format(BaseServiceBusEndpoint, environment.AzureServiceName());