Base solution for your next web application
Open Closed

How to add a new service #11431


User avatar
0
zdeen created

Hi,

I would like to add a new service which will use another class (say, class A) to complete the task. What is the procedure to add a new service in aspnet zero


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @zdeen

    You can add a service just like you do in a regular ASP.NET Core app. I think, by service, you mean a new project. If so, you need to create a module class in your new project (see https://aspnetboilerplate.com/Pages/Documents/Module-System). Your new module must depend on your other module which contains class A.

    Please let me know if you face any problems while doing that. You can also take a look at Migrator project in the solution as an example.