示例#1
0
 public RoleController(IUnitOfWork unitOfWork,
                       IBusinessContextProvider contextProvider,
                       IStringLocalizer <ResultCode> resultLocalizer,
                       IIdentityService identityService) : base(unitOfWork, contextProvider, resultLocalizer)
 {
     _identityService = identityService;
 }
示例#2
0
 public SettingController(IUnitOfWork unitOfWork,
                          IBusinessContextProvider contextProvider,
                          IStringLocalizer <ResultCode> resultLocalizer,
                          ISettingService settingService) : base(unitOfWork, contextProvider, resultLocalizer)
 {
     _settingService = settingService;
 }
示例#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;
 }
示例#5
0
 public DataContextFactory(DbContextOptions <DataContext> options,
                           IOptionsSnapshot <QueryFilterOptions> queryFilters,
                           IBusinessContextProvider businessContextProvider) : base(options)
 {
     _queryFilters            = queryFilters;
     _businessContextProvider = businessContextProvider;
 }
示例#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;
 }
示例#8
0
 public BaseService(DataContext dbContext,
     IStringLocalizer<ResultCode> resultLocalizer,
     IBusinessContextProvider contextProvider)
 {
     this.dbContext = dbContext;
     this.resultLocalizer = resultLocalizer;
     this.contextProvider = contextProvider;
 }
示例#9
0
 public BaseApiController(IUnitOfWork unitOfWork,
                          IBusinessContextProvider contextProvider,
                          IStringLocalizer <ResultCode> resultLocalizer)
 {
     this.unitOfWork      = unitOfWork;
     this.contextProvider = contextProvider;
     this.resultLocalizer = resultLocalizer;
 }
示例#10
0
        internal static void Configure(IBusinessContextProvider bizContextProvider)
        {
            if (_bizContextProvider != null)
            {
                throw new ArgumentNullException($"Already initialized {nameof(bizContextProvider)}");
            }

            _bizContextProvider = bizContextProvider;
        }
示例#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;
 }
示例#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;
 }
示例#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());
            }
        }
示例#14
0
 public PostCategoryService(DataContext dbContext,
                            IStringLocalizer <ResultCode> resultLocalizer,
                            IBusinessContextProvider contextProvider) : base(dbContext, resultLocalizer, contextProvider)
 {
 }