Created
October 8, 2021 20:47
-
-
Save ankitvijay/1fc69699146165517a7773f125d06504 to your computer and use it in GitHub Desktop.
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