Example #1
0
        /// <inheritdoc/>
        public override void InitConfig(CoreBaseEnvironment environment)
        {
            base.InitConfig(environment);

            ModAuthBase?.InitConfig(environment);
            ModDummyMainBase?.InitConfig(environment);
        }
Example #2
0
        /// <inheritdoc/>
        public override void InitContext(IServiceProvider serviceProvider, CoreBaseEnvironment environment)
        {
            base.InitContext(serviceProvider, environment);

            ModAuthBase?.InitContext(new ModAuthBaseExternals
            {
                CoreBaseResourceErrors     = CoreBase?.Context.Resources.Errors,
                ResourceErrorsLocalizer    = GetLocalizer <ModAuthBaseResourceErrors>(serviceProvider),
                ResourceSuccessesLocalizer = GetLocalizer <ModAuthBaseResourceSuccesses>(serviceProvider)
            });

            ModDummyMainBase?.InitContext(new ModDummyMainBaseExternals
            {
                CoreBaseResourceErrors     = CoreBase?.Context.Resources.Errors,
                CoreBaseDataProvider       = CoreDataSqlServer?.Context.Provider,
                DataBaseSettings           = DataBase?.Context.Settings,
                DataEntityDbFactory        = DataEntitySqlServer?.Context.DbFactory,
                ResourceErrorsLocalizer    = GetLocalizer <ModDummyMainBaseResourceErrors>(serviceProvider),
                ResourceSuccessesLocalizer = GetLocalizer <ModDummyMainBaseResourceSuccesses>(serviceProvider)
            });

            ModProductBase?.InitContext(new ModProductBaseExternals
            {
                CoreBaseResourceErrors     = CoreBase?.Context.Resources.Errors,
                CoreBaseDataProvider       = CoreDataSqlServer?.Context.Provider,
                DataBaseSettings           = DataBase?.Context.Settings,
                DataEntityDbFactory        = DataEntitySqlServer?.Context.DbFactory,
                ResourceErrorsLocalizer    = GetLocalizer <ModProductBaseResourceErrors>(serviceProvider),
                ResourceSuccessesLocalizer = GetLocalizer <ModProductBaseResourceSuccesses>(serviceProvider)
            });
        }
Example #3
0
        /// <inheritdoc/>
        public override void ConfigureServices(IServiceCollection services)
        {
            base.ConfigureServices(services);

            ModAuthBase?.ConfigureServices(services);
            ModDummyMainBase?.ConfigureServices(services);
        }