Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Accessing zero application layer from external classlib #1131


User avatar
0
patrickglaudemans created

Hi,

I want to access my ZERO application services from within an external class library (console/win service etc.) Therefore I need to initialize the IocManager like IocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly()); This is only working in a AbpModule. What's the proper way to setup this up.


5 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    We have a Console Application to demonstrate it: <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-samples/tree/master/PhoneBook/src/Acme.PhoneBook.ConsoleApp">https://github.com/aspnetzero/aspnet-ze ... ConsoleApp</a>

  • User Avatar
    0
    patrickglaudemans created

    Thanks, but can you supply proper link - link is broken!

  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    Link is not broken but you don't have permission to see it. Can you share your Github username to grant the permission.

  • User Avatar
    0
    patrickglaudemans created

    pglaudemans

    thanks!

  • User Avatar
    0
    devloo created

    I'm intrested in this topic, but the link/example is not working. Can somebody help me out ? Thx