public void Bind(AzureServiceBusConnection connection) { if (!_purgeExistingMessages) return; _logger.InfoFormat("purging queues for {0}", _address); Purge().Wait(); }
public void Bind(AzureServiceBusConnection connection) { if (!_purgeExistingMessages) { return; } _logger.InfoFormat("purging queues for {0}", _address); Purge().Wait(); }
private static ServiceBusConnectionStringBuilder BuildConnectionString(string entityPath, IServiceProvider serviceProvider) { // Use ASB connection string from env variable IConfiguration configuration = serviceProvider.GetRequiredService <IConfiguration>(); var asbConfig = new AzureServiceBusConnection(); configuration.Bind("AzureServiceBusConnection", asbConfig); return(new ServiceBusConnectionStringBuilder(asbConfig.Endpoint, entityPath, asbConfig.SasKeyName, asbConfig.SasKey, asbConfig.TransportType)); }
public void Unbind(AzureServiceBusConnection connection) { }