We are currently developing a distributed system with the help of nServiceBus. Now we would like to linke the back-backend-part of the system (which is processing the messages) with the entity framework part of asp.netzero. Therefore we referenced the asp.netzero Application project in our solution and make use of the Windsor DI container over the IocManager from Abp. However the entity framwork repositories are not registered in the container as we don't actually start the asp.netzero application.
Can you give us the direction where we should go?:
- Is there a simple way to just register the entity framework repositories without starting the web.host project?
- Or should we just copy the Web.Host project and start our back-backend-system within this context? Actually we would like to use as less as possible asp.netzero code in this part of our system.
2 Answer(s)
-
0
We are currently developing a distributed system with the help of nServiceBus.
@enio is this a console app, web app, windows service or something else ?
Probably you need to create an ABP module for your app and this module should depend on your ApplicationModule, see https://aspnetboilerplate.com/Pages/Documents/Module-System
After that, you need to bootstrap your main module like this https://github.com/aspnetboilerplate/aspnetboilerplate-samples/blob/master/AbpEfConsoleApp/AbpEfConsoleApp/Program.cs
-
0
Yes it is a console app. Thank you very much for pointing me the direction. Embedding our system in a custom module is what I have done already. Your second hint is new to me and exactly what I was looking for.
kind regards, marco