Example #1
0
 public RoleController(IUnitOfWork unitOfWork,
                       IBusinessContextProvider contextProvider,
                       IStringLocalizer <ResultCode> resultLocalizer,
                       IIdentityService identityService) : base(unitOfWork, contextProvider, resultLocalizer)
 {
     _identityService = identityService;
 }
Example #2
0
 public SettingController(IUnitOfWork unitOfWork,
                          IBusinessContextProvider contextProvider,
                          IStringLocalizer <ResultCode> resultLocalizer,
                          ISettingService settingService) : base(unitOfWork, contextProvider, resultLocalizer)
 {
     _settingService = settingService;
 }
Example #3
0
 public ErrorController(IUnitOfWork unitOfWork,
                        IBusinessContextProvider contextProvider,
                        IStringLocalizer <ResultCode> resultLocalizer,
                        IWebHostEnvironment env) : base(unitOfWork, contextProvider, resultLocalizer)
 {
     _env = env;
 }
 public ReferenceDataController(IUnitOfWork unitOfWork,
                                IBusinessContextProvider contextProvider,
                                IStringLocalizer <ResultCode> resultLocalizer,
                                IReferenceDataService referenceDataService) : base(unitOfWork, contextProvider, resultLocalizer)
 {
     _referenceDataService = referenceDataService;
 }
 public DataContextFactory(DbContextOptions <DataContext> options,
                           IOptionsSnapshot <QueryFilterOptions> queryFilters,
                           IBusinessContextProvider businessContextProvider) : base(options)
 {
     _queryFilters            = queryFilters;
     _businessContextProvider = businessContextProvider;
 }
Example #6
0
 public ReferenceDataService(DataContext dbContext,
                             IStringLocalizer <ResultCode> resultLocalizer,
                             IBusinessContextProvider contextProvider,
                             IMemoryCache memoryCache) : base(dbContext, resultLocalizer, contextProvider)
 {
     _memoryCache = memoryCache;
 }
 public PostCategoryController(IUnitOfWork unitOfWork,
                               IBusinessContextProvider contextProvider,
                               IStringLocalizer <ResultCode> resultLocalizer,
                               IPostCategoryService postCategoryService) : base(unitOfWork, contextProvider, resultLocalizer)
 {
     _postCategoryService = postCategoryService;
 }
Example #8
0
 public BaseService(DataContext dbContext,
     IStringLocalizer<ResultCode> resultLocalizer,
     IBusinessContextProvider contextProvider)
 {
     this.dbContext = dbContext;
     this.resultLocalizer = resultLocalizer;
     this.contextProvider = contextProvider;
 }
Example #9
0
 public BaseApiController(IUnitOfWork unitOfWork,
                          IBusinessContextProvider contextProvider,
                          IStringLocalizer <ResultCode> resultLocalizer)
 {
     this.unitOfWork      = unitOfWork;
     this.contextProvider = contextProvider;
     this.resultLocalizer = resultLocalizer;
 }
Example #10
0
        internal static void Configure(IBusinessContextProvider bizContextProvider)
        {
            if (_bizContextProvider != null)
            {
                throw new ArgumentNullException($"Already initialized {nameof(bizContextProvider)}");
            }

            _bizContextProvider = bizContextProvider;
        }
Example #11
0
 public IdentityService(DataContext dbContext,
                        IStringLocalizer <ResultCode> resultLocalizer,
                        IBusinessContextProvider contextProvider,
                        UserManager <AppUserEntity> userManager,
                        SignInManager <AppUserEntity> signInManager) : base(dbContext, resultLocalizer, contextProvider)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
 }
Example #12
0
 public SettingService(DataContext dbContext,
                       IStringLocalizer <ResultCode> resultLocalizer,
                       IBusinessContextProvider contextProvider,
                       IJsonConfigurationManager configurationManager,
                       ISecretsManager secretsManager,
                       IConfiguration configuration) : base(dbContext, resultLocalizer, contextProvider)
 {
     _configurationManager = configurationManager;
     _secretsManager       = secretsManager;
     _configurationRoot    = configuration as IConfigurationRoot;
 }
Example #13
0
        public DataContext(DbContextOptions options,
                           IOptionsSnapshot <QueryFilterOptions> queryFilterOptions = null,
                           IBusinessContextProvider businessContextProvider         = null,
                           AppEntitySchema entitySchema = null) : base(options, queryFilterOptions)
        {
            _businessContextProvider = businessContextProvider;

            if (_model != null)
            {
                entitySchema.InitSchema(_model.ParseSchema());
            }
        }
 public PostCategoryService(DataContext dbContext,
                            IStringLocalizer <ResultCode> resultLocalizer,
                            IBusinessContextProvider contextProvider) : base(dbContext, resultLocalizer, contextProvider)
 {
 }