public void ConfigureServices(IServiceCollection services) | |
{ | |
services | |
// other registrations omitted for brevity | |
.AddSingleton(serviceProvider => | |
{ | |
var uri = new Uri("amqp://guest:guest@rabbit:5672/CUSTOM_HOST"); | |
return new ConnectionFactory | |
{ | |
Uri = uri | |
}; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment