Skip to content

Instantly share code, notes, and snippets.

Created October 8, 2021 20:47
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
NServiceBus Cosmos Sample - Use NServiceBus
var builder = WebApplication.CreateBuilder(args);
builder.Host.UseNServiceBus(_ =>
var endpointConfiguration = new EndpointConfiguration("Samples.Api");
var transport = endpointConfiguration.UseTransport<LearningTransport>();
var routing = transport.Routing();
routing.RouteToEndpoint(Assembly.Load("Messages"), "Samples.Worker");
return endpointConfiguration;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment