Exemple #1
0
 /// <summary>
 /// Construtor padrão
 /// </summary>
 /// <param name="authUser">Usuário autenticado</param>
 /// <param name="unitOfWork">Acesso a dados</param>
 /// <param name="logger">Logger</param>
 public MeBusiness(
     Model.IAuthUser authUser,
     IUnitOfWork unitOfWork,
     ILogger <MeBusiness> logger)
 {
     _authUser   = authUser;
     _logger     = logger;
     _unitOfWork = unitOfWork;
 }
Exemple #2
0
 /// <summary>
 /// Construtor padrão
 /// </summary>
 /// <param name="authUser">Usuário autenticado</param>
 /// <param name="unitOfWork">Implementação de IUnitOfWork</param>
 /// <param name="logger">Logger</param>
 public MyAnnouncementBusiness(
     Model.IAuthUser authUser,
     IUnitOfWork unitOfWork,
     ILogger <MyAnnouncementBusiness> logger)
     : base(unitOfWork, logger)
 {
     _authUser   = authUser;
     _unitOfWork = unitOfWork;
     _logger     = logger;
 }
Exemple #3
0
 /// <summary>
 /// Construtor padrão
 /// </summary>
 /// <param name="dbContext">Contexto do banco de dados</param>
 /// <param name="authUser">Usuário autenticado</param>
 /// <param name="general">Configurações gerais</param>
 /// <param name="logger">Logger</param>
 public UnitOfWork(
     IDbContext dbContext,
     Model.IAuthUser authUser,
     IGeneralSettings general,
     ILogger <UnitOfWork> logger)
 {
     _dbContext = dbContext.CurrentDbContext;
     _authUser  = authUser;
     _general   = general;
     _logger    = logger;
 }