I’m not going to go into a lot of detail on RabbitMq for 2 reasons. I will talk about this a bit more later on in this post. This is also the area where you add your consumers. Finally, we set the ReceiveEndpoint, where we can set the retry policy and Prefetch count among other config items. #Masstransit retry selected passwordAfter that, the host is configured with the URI and the user name & password needed to connect to it. Inside this, we add a bus where we tell it what type of bus it will be. The first part AddMassTransit does what it says and adds MassTransit to the builder. Host.Password(massTransitConfig) Ĭfg.ReceiveEndpoint(BusSettings.EventsService,Įp.UseMessageRetry(r => r.Interval(2, 100)) Var massTransitConfig = config.GetSection(BusSettings.MassTransitConfig) Var serviceBusHost = config.GetConnectionString(BusSettings.ServiceBusConnection) Var config = ConfigurationHelper.GetConfiguration() Protected override void Load(ContainerBuilder builder) #Masstransit retry selected codeThe code for this looks like the following.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |