Skip to content

Instantly share code, notes, and snippets.

Created May 17, 2020
What would you like to do?
public void ConfigureServices(IServiceCollection services)
// omitted for brevity
.AddSingleton(serviceProvider =>
var uri = new Uri("amqp://guest:guest@rabbit:5672/CUSTOM_HOST");
return new ConnectionFactory
Uri = uri,
DispatchConsumersAsync = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment