NServiceBus Cosmos Sample - Use NServiceBus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | |
endpointConfiguration.SendOnly(); | |
return endpointConfiguration; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment