General Service

From Bitnami MediaWiki
Revision as of 12:11, 4 October 2023 by User (talk | contribs) (Created page with "<pre>public class FooService : BaseService, IFooService { private readonly NOVUSContext dbContext; public FooService( IUnitOfWork uow, IMapper mapper, IHttpContextAccessor httpContextAccessor , NOVUSContext dbContext, ILogger<FooService> logger ) : base(uow, mapper, httpContextAccessor, logger) { this.dbContext = dbContext; } }</pre> Register the registerBusinessLayer() method in the Novus.Web.Common/RegisterLayerServices.cs class wi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
public class FooService : BaseService, IFooService
{
  private readonly NOVUSContext dbContext;

  public FooService(
    IUnitOfWork uow,
    IMapper mapper,
    IHttpContextAccessor httpContextAccessor ,
    NOVUSContext dbContext,
    ILogger<FooService> logger
    ) : base(uow, mapper, httpContextAccessor, logger)
  {
    this.dbContext = dbContext;
  }
}

Register the registerBusinessLayer() method in the Novus.Web.Common/RegisterLayerServices.cs class with services.AddTransient<IFooService, FooService>().


Return to Programming Guide