Skip to content

Instantly share code, notes, and snippets.

@gdyrrahitis

gdyrrahitis/Startup.cs Secret

Created May 17, 2020
Embed
What would you like to do?
public void ConfigureServices(IServiceCollection services)
{
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
You can’t perform that action at this time.