Skip to content

Instantly share code, notes, and snippets.

@dcomartin

dcomartin/Startup.cs

Created Sep 23, 2020
Embed
What would you like to do?
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
services.AddSales();
services.AddShipping();
services
.AddLogging(builder =>
{
builder.SetMinimumLevel(LogLevel.Trace);
builder.AddConsole();
})
.AddBrighter(options =>
{
var messageStore = new InMemoryMessageStore();
var rmq = new RmqMessageProducer(new RmqMessagingGatewayConnection
{
AmpqUri = new AmqpUriSpecification(new Uri("amqp://guest:guest@localhost:5672")),
Exchange = new Exchange("demo")
});
options.BrighterMessaging = new BrighterMessaging(messageStore, rmq);
})
.AddSales()
.AddShipping();;
}
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.