예제 #1
0
 ///  <summary>
 ///
 ///  </summary>
 ///  <param name="mapper"></param>
 ///  <param name="unitOfWork"></param>
 /// <param name="httpContextManager"></param>
 /// <param name="listManager"></param>
 public StatisticService(IMapper mapper, IUnitOfWork unitOfWork, IHttpContextManager httpContextManager)
 {
     _statistics         = unitOfWork.Set <Statistic>();
     _unitOfWork         = unitOfWork;
     _httpContextManager = httpContextManager;
     _mapper             = mapper;
 }
예제 #2
0
 public DocumentSaleService(IMapper mapper, IUnitOfWork unitOfWork, IHttpContextManager httpContextManager)
 {
     _mapper             = mapper;
     _unitOfWork         = unitOfWork;
     _httpContextManager = httpContextManager;
     _documentSales      = unitOfWork.Set <Sale>();
 }
예제 #3
0
 protected BaseService(IMapper mapper, IUnitOfWork unitOfWork, IHttpContextManager httpContextManager)
 {
     _mapper = mapper;
     _unitOfWork = unitOfWork;
     _httpContextManager = httpContextManager;
     _doctors = unitOfWork.Set<Doctor>();
 }
예제 #4
0
 ///  <summary>
 ///
 ///  </summary>
 ///  <param name="mapper"></param>
 ///  <param name="unitOfWork"></param>
 /// <param name="httpContextManager"></param>
 /// <param name="listManager"></param>
 public ActivityLogService(IMapper mapper, IUnitOfWork unitOfWork, IHttpContextManager httpContextManager)
 {
     _mapper             = mapper;
     _unitOfWork         = unitOfWork;
     _httpContextManager = httpContextManager;
     _activityLogs       = unitOfWork.Set <ActivityLog>();
 }
예제 #5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="unitOfWork"></param>
 /// <param name="mapper"></param>
 /// <param name="httpContextManager"></param>
 public PatientService(IUnitOfWork unitOfWork, IMapper mapper, IHttpContextManager httpContextManager)
 {
     _unitOfWork         = unitOfWork;
     _mapper             = mapper;
     _httpContextManager = httpContextManager;
     _patients           = unitOfWork.Set <Patient>();
 }
예제 #6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="mapper"></param>
 /// <param name="unitOfWork"></param>
 /// <param name="httpContextManager"></param>
 public DocumentService(IMapper mapper, IUnitOfWork unitOfWork, IHttpContextManager httpContextManager)
 {
     _mapper             = mapper;
     _unitOfWork         = unitOfWork;
     _documentRepository = unitOfWork.Set <Document>();
     _httpContextManager = httpContextManager;
 }
예제 #7
0
 public ProductSellerService(IMapper mapper, IHttpContextManager httpContextManager, IUnitOfWork unitOfWork)
 {
     _mapper             = mapper;
     _httpContextManager = httpContextManager;
     _unitOfWork         = unitOfWork;
     _productSellers     = unitOfWork.Set <ProductSeller>();
 }
예제 #8
0
 ///  <summary>
 ///
 ///  </summary>
 ///  <param name="mapper"></param>
 ///  <param name="unitOfWork"></param>
 /// <param name="httpContextManager"></param>
 /// <param name="listManager"></param>
 public SmsService(IMapper mapper, IUnitOfWork unitOfWork, IHttpContextManager httpContextManager)
 {
     _smses              = unitOfWork.Set <Sms>();
     _unitOfWork         = unitOfWork;
     _httpContextManager = httpContextManager;
     _mapper             = mapper;
 }
예제 #9
0
 public AuditLogService(IMapper mapper, IUnitOfWork unitOfWork, IDbSet <AuditLog> auditLogStore, IHttpContextManager httpContextManager)
 {
     _mapper             = mapper;
     _unitOfWork         = unitOfWork;
     _httpContextManager = httpContextManager;
     _auditLogs          = unitOfWork.Set <AuditLog>();
 }
예제 #10
0
 public ExpertiseService(IHttpContextManager httpContextManager, IUnitOfWork unitOfWork, IMapper mapper)
 {
     _httpContextManager = httpContextManager;
     _unitOfWork         = unitOfWork;
     _mapper             = mapper;
     _expertises         = unitOfWork.Set <Expertise>();
 }
예제 #11
0
 ///  <summary>
 ///
 ///  </summary>
 ///  <param name="mapper"></param>
 ///  <param name="unitOfWork"></param>
 /// <param name="httpContextManager"></param>
 /// <param name="listManager"></param>
 public AddressService(IMapper mapper, IUnitOfWork unitOfWork, IHttpContextManager httpContextManager)
 {
     _mapper             = mapper;
     _unitOfWork         = unitOfWork;
     _httpContextManager = httpContextManager;
     _addressStore       = unitOfWork.Set <Address>();
 }
예제 #12
0
 public ProductService(IHttpContextManager httpContextManager, IUnitOfWork unitOfWork, IMapper mapper)
 {
     _httpContextManager = httpContextManager;
     _unitOfWork         = unitOfWork;
     _mapper             = mapper;
     _products           = unitOfWork.Set <Product>();
 }
예제 #13
0
 public RefreshTokensQueryHandler(ApplicationContext context, UserManager <ApplicationUser> userManager,
                                  ITokenManager tokenManager, IHttpContextManager httpContextManager)
 {
     _context            = context;
     _userManager        = userManager;
     _tokenManager       = tokenManager;
     _httpContextManager = httpContextManager;
 }
 public RegisterNewUserCommandHandler(ApplicationContext context, UserManager <ApplicationUser> userManager,
                                      ITokenManager tokenManager, IHttpContextManager httpContextManager)
 {
     _context            = context;
     _userManager        = userManager;
     _tokenManager       = tokenManager;
     _httpContextManager = httpContextManager;
 }
예제 #15
0
 ///  <summary>
 ///
 ///  </summary>
 ///  <param name="mapper"></param>
 ///  <param name="unitOfWork"></param>
 /// <param name="httpContextManager"></param>
 /// <param name="listManager"></param>
 public EmailService(IMapper mapper, IUnitOfWork unitOfWork, IHttpContextManager httpContextManager, IConfigurationManager configurationManager)
 {
     _emails               = unitOfWork.Set <Email>();
     _unitOfWork           = unitOfWork;
     _httpContextManager   = httpContextManager;
     _configurationManager = configurationManager;
     _mapper               = mapper;
 }
예제 #16
0
 public ProductBuyService(IHttpContextManager httpContextManager, IUnitOfWork unitOfWork, IMapper mapper, IProductSellerService productSellerService)
 {
     _httpContextManager   = httpContextManager;
     _unitOfWork           = unitOfWork;
     _mapper               = mapper;
     _productSellerService = productSellerService;
     _productBuys          = unitOfWork.Set <ProductBuy>();
 }
예제 #17
0
 public DoctorService(IHttpContextManager httpContextManager, IUnitOfWork unitOfWork, IMapper mapper, IExpertiseService expertiseService)
 {
     _httpContextManager = httpContextManager;
     _unitOfWork         = unitOfWork;
     _mapper             = mapper;
     _expertiseService   = expertiseService;
     _doctors            = unitOfWork.Set <Doctor>();
 }
예제 #18
0
 ///  <summary>
 ///
 ///  </summary>
 ///  <param name="unitOfWork"></param>
 ///  <param name="mapper"></param>
 /// <param name="httpContextManager"></param>
 public ReportService(IUnitOfWork unitOfWork, IMapper mapper, IHttpContextManager httpContextManager, IConfigurationManager configurationManager)
 {
     _unitOfWork           = unitOfWork;
     _reportRepository     = unitOfWork.Set <Report>();
     _mapper               = mapper;
     _httpContextManager   = httpContextManager;
     _configurationManager = configurationManager;
 }
예제 #19
0
 public LoginUserQueryHandler(ApplicationContext context, UserManager <ApplicationUser> userManager,
                              SignInManager <ApplicationUser> signInManager, ITokenManager tokenManager, IHttpContextManager httpContextManager)
 {
     _context            = context;
     _userManager        = userManager;
     _signInManager      = signInManager;
     _tokenManager       = tokenManager;
     _httpContextManager = httpContextManager;
 }
예제 #20
0
 ///  <summary>
 ///
 ///  </summary>
 ///  <param name="unitOfWork"></param>
 ///  <param name="mapper"></param>
 ///  <param name="applicationPermissionService"></param>
 ///  <param name="roleStore"></param>
 /// <param name="httpContextManager"></param>
 /// <param name="listManager"></param>
 public RoleService(IUnitOfWork unitOfWork, IMapper mapper, IPermissionManager applicationPermissionService, IRoleStore <Role, Guid> roleStore, IHttpContextManager httpContextManager) : base(roleStore)
 {
     _applicationPermissionService = applicationPermissionService;
     _httpContextManager           = httpContextManager;
     _unitOfWork       = unitOfWork;
     _mapper           = mapper;
     _roles            = unitOfWork.Set <Role>();
     AutoCommitEnabled = true;
 }
예제 #21
0
        public FileManager(
            IDatabaseManager databaseManager,
            IHttpContextManager httpContextManager,
            IResponsePreprocessManager responsePreprocessManager,
            IOptions <AppOptions> appOptionsAccessor)
        {
            this.databaseManager           = databaseManager;
            this.httpContextManager        = httpContextManager;
            this.responsePreprocessManager = responsePreprocessManager;

            appOptions = appOptionsAccessor.Value;
        }
예제 #22
0
 public DatabaseManager(
     IHttpContextManager httpContextManager,
     IQueryManager queryManager,
     IOptions <AppOptions> appOptionAccessor,
     ILoggerFactory loggerFactory)
 {
     this.httpContextManager = httpContextManager;
     this.queryManager       = queryManager;
     appOptions = appOptionAccessor.Value;
     connection = new MySqlConnection(appOptions.DbConnectionConfig);
     logger     = loggerFactory.CreateLogger <DatabaseManager>();
 }
예제 #23
0
        // private readonly IApplicationSignInManager _applicationSignInManager;

        #region Public Constructors

        ///  <summary>
        ///
        ///  </summary>
        ///  <param name="mapper"></param>
        ///  <param name="applicationPermissionService"></param>
        ///  <param name="roleService"></param>
        ///  <param name="userStore"></param>
        ///  <param name="identity"></param>
        ///  <param name="dataProtectionProvider"></param>
        ///  <param name="smsService"></param>
        ///  <param name="emailService"></param>
        ///  <param name="unitOfWork"></param>
        /// <param name="listManager"></param>
        /// <param name="httpContextManager"></param>
        /// <param name="configurationManager"></param>
        public UserService(IMapper mapper, IUserStore <User, Guid> userStore, IDataProtectionProvider dataProtectionProvider, IIdentityMessageService smsService, IIdentityMessageService emailService, IRoleService roleService, IUnitOfWork unitOfWork, IHttpContextManager httpContextManager) : base(userStore)
        {
            _mapper = mapper;
            _dataProtectionProvider = dataProtectionProvider;
            _users              = unitOfWork.Set <User>();
            _roleService        = roleService;
            _unitOfWork         = unitOfWork;
            _httpContextManager = httpContextManager;
            SmsService          = smsService;
            EmailService        = emailService;
            AutoCommitEnabled   = true;
        }
예제 #24
0
 /// <inheritdoc />
 ///  <summary>
 ///  </summary>
 ///  <param name="unitOfWork"></param>
 ///  <param name="mapper"></param>
 ///  <param name="roleStore"></param>
 ///  <param name="eventPublisher"></param>
 /// <param name="permissionService"></param>
 /// <param name="permissionService1"></param>
 public RoleService(IUnitOfWork unitOfWork, IMapper mapper, IRoleStore <Role, Guid> roleStore, IEventPublisher eventPublisher, IPermissionService permissionService, IPermissionService permissionService1, IHttpContextManager httpContextManager)
     : base(roleStore)
 {
     _roleRepository           = unitOfWork.Set <Role>();
     _unitOfWork               = unitOfWork;
     _eventPublisher           = eventPublisher;
     _permissionService        = permissionService;
     _permissionService        = permissionService1;
     _httpContextManager       = httpContextManager;
     _rolePermissionRepository = unitOfWork.Set <RolePermission>();
     _mapper           = mapper;
     AutoCommitEnabled = true;
 }
 public MobileMessageManager(
     IFileManager fileManager,
     IDatabaseManager databaseManager,
     IHttpContextManager httpContextManager,
     IResponsePreprocessManager responsePreprocessManager,
     IOptionsMonitor <AppOptions> appOptionsMonitor)
 {
     this.fileManager               = fileManager;
     this.databaseManager           = databaseManager;
     this.httpContextManager        = httpContextManager;
     this.responsePreprocessManager = responsePreprocessManager;
     appOptions = appOptionsMonitor.CurrentValue;
 }
 public LogoutUserQueryHandler(IHttpContextManager httpContextManager, SignInManager <ApplicationUser> signInManager)
 {
     _httpContextManager = httpContextManager;
     _signInManager      = signInManager;
 }
예제 #27
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="webContextManager"></param>
 public CommonService(IHttpContextManager httpContextManager)
 {
     _httpContextManager = httpContextManager;
 }