Base solution for your next web application
Open Closed

Need a sample webjob to access application services #11820


User avatar
0
slavanaway created

Hi,

Please provide a sample to create a webjob to access application services. We are using ASP.Net Core & Angular version V12.2.1.

Thanks. Siva Pierpont


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

    Hi,

    You can take a look at UserCollectedDataPrepareJob.cs in your project. You can technically injecy an application service into this job but we don't suggest using application services in background jobs. Instead, use a domain service (see https://aspnetboilerplate.com/Pages/Documents/Domain-Services).

    Application services are designed to be used by client apps.