Пример #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;
 }