General Service: Difference between revisions

From Bitnami MediaWiki
Jump to navigation Jump to search
(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...")
 
(No difference)

Latest revision as of 12:11, 4 October 2023

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