Closed VladislavMorozov closed 4 years ago
Check this out: 👉 https://github.com/rebus-org/Rebus.ServiceProvider#a-vanilla-console-app
But this example to console app. I think is a too uncomfortable way for a web app.
I mean this is a problem to migrate from previous versions.
oh, sorry – if you scroll up a bit, then the example is for a web app: 👉 https://github.com/rebus-org/Rebus.ServiceProvider#in-aspnet-core-20-startupcs
But I catch the exception. Look at the previous picture.
I registered rebus from Rebus.Autofac builder.RegisterRebus();
and use app.ApplicationServices.UseRebus();
from Rebus.ServiceProvider.
https://user-images.githubusercontent.com/31768904/75884503-ff6f8e00-5e35-11ea-8281-70e006657f07.png
ah ok.... I got a little bit confused there.
You need to explain to me how Autofac and ServiceProvider work together in your scenario
Ok, I will describe in new issue.
Hello! How to use
app.ApplicationServices.UseRebus();
, if I registred rebus from autofacbuilder.RegisterRebus();
?