public SampleWorkerServiceModule()
 {
     _appConfiguration = AppConfigurations.Get(Assembly.GetExecutingAssembly().GetDirectoryPathOrNull());
 }
示例#2
0
        public QyMsg(IHostingEnvironment env, ISynchronizeManager synchronizeManager)
        {
            this._synchronizeManager = synchronizeManager;

            _appConfiguration = AppConfigurations.Get(env.ContentRootPath, env.EnvironmentName, env.IsDevelopment());
        }
示例#3
0
 public SimpleTaskSystemWebModule(IHostingEnvironment env)
 {
     _appConfiguration = AppConfigurations.Get(env.ContentRootPath, env.EnvironmentName);
 }
 public TestAppConfigurationAccessor()
 {
     Configuration = AppConfigurations.Get(
         typeof(ERPTestBaseModule).GetAssembly().GetDirectoryPathOrNull()
         );
 }
        private static string GetConnectionString()
        {
            var configuration = AppConfigurations.Get(WebContentDirectoryFinder.CalculateContentRootFolder());

            return(configuration.GetConnectionString(WebApiConsts.MysqlConnectionStringName));
        }
示例#6
0
 private static IConfigurationRoot GetConfiguration()
 {
     return(AppConfigurations.Get(Directory.GetCurrentDirectory(), addUserSecrets: true));
 }
示例#7
0
 protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
 {
     base.OnConfiguring(optionsBuilder);
     optionsBuilder.UseMySql(_appConfigurations.Get("ConnectionString"));
 }
 public ResponsibleSystemCommonCosmosDbModule(IHostingEnvironment env)
 {
     _env = env;
     _appConfiguration = AppConfigurations.Get(env.ContentRootPath, env.EnvironmentName, env.IsDevelopment()); //env.GetAppConfiguration();
 }
示例#9
0
 public ScrmApiModule(IHostingEnvironment env)
 {
     _env = env;
     _appConfiguration = AppConfigurations.Get(env.ContentRootPath, env.EnvironmentName);
 }
 public GalaxyFlowWebModule(IHostingEnvironment env)
 {
     _appConfiguration = AppConfigurations.Get(env.ContentRootPath, env.EnvironmentName);
 }
示例#11
0
 public Startup(IHostingEnvironment env)
 {
     _appConfiguration = AppConfigurations.Get(env.ContentRootPath, env.EnvironmentName);
 }
示例#12
0
 public IEManageSystemWebModule(IWebHostEnvironment env)
 {
     _appConfiguration = AppConfigurations.Get(env.ContentRootPath, env.EnvironmentName);
 }
示例#13
0
 public PermissionChecker(IHostingEnvironment env)
 {
     AbpSession       = NullAbpSession.Instance;
     Logger           = NullLogger.Instance;
     appConfiguration = AppConfigurations.Get(env.ContentRootPath, env.EnvironmentName);
 }
示例#14
0
 public HRManagerWebModule(IHostingEnvironment env)
 {
     _appConfiguration = AppConfigurations.Get(env.ContentRootPath, env.EnvironmentName);
 }
示例#15
0
 public CustomerLogic()
 {
     _appConfiguration = AppConfigurations.Get(
         typeof(CustomerLogic).GetAssembly().GetDirectoryPathOrNull()
         );
 }
示例#16
0
 public FridgeApplicationModule()
 {
     _configuration = AppConfigurations.Get(
         typeof(FridgeApplicationModule).GetAssembly().GetDirectoryPathOrNull());
 }
示例#17
0
 public TestAppConfigurationAccessor()
 {
     Configuration = AppConfigurations.Get(
         typeof(WebPortalTestModule).GetAssembly().GetDirectoryPathOrNull()
         );
 }
 public AbpZeroTemplateMigratorModule()
 {
     _appConfiguration = AppConfigurations.Get(
         typeof(AbpZeroTemplateMigratorModule).Assembly.GetDirectoryPathOrNull()
         );
 }
示例#19
0
 public MultiAPIMigratorModule()
 {
     _appConfiguration = AppConfigurations.Get(
         typeof(MultiAPIMigratorModule).Assembly.GetDirectoryPathOrNull()
         );
 }
示例#20
0
 public TaobaoAuthorizationWebModule(IHostingEnvironment env)
 {
     _appConfiguration = AppConfigurations.Get(env.ContentRootPath, env.EnvironmentName);
 }
示例#21
0
 public RecevieProjectAuditResult(IHostingEnvironment env)
 {
     _env = env;
     _appConfiguration = AppConfigurations.Get(env.ContentRootPath, env.EnvironmentName, env.IsDevelopment());
 }
 public ExpeditioMigratorModule()
 {
     _appConfiguration = AppConfigurations.Get(
         typeof(ExpeditioMigratorModule).Assembly.GetDirectoryPathOrNull()
         );
 }
示例#23
0
 public BoilerplateCoreWebModule(IHostingEnvironment env)
 {
     _appConfiguration = AppConfigurations.Get(env.ContentRootPath, env.EnvironmentName);
 }
示例#24
0
 public TestProjectWebModule(IHostingEnvironment env)
 {
     _appConfiguration = AppConfigurations.Get(env.ContentRootPath, env.EnvironmentName);
 }
 public GuidersHubMigratorModule()
 {
     _appConfiguration = AppConfigurations.Get(
         typeof(GuidersHubMigratorModule).Assembly.GetDirectoryPathOrNull()
         );
 }
示例#26
0
 public static IConfigurationRoot GetConfiguration(this IHostingEnvironment env)
 {
     return(AppConfigurations.Get(env.ContentRootPath, env.EnvironmentName, env.IsDevelopment()));
 }
 public MyConnectionStringResolver(IAbpStartupConfiguration configuration, IHostingEnvironment hostingEnvironment)
     : base(configuration)
 {
     _appConfiguration =
         AppConfigurations.Get(hostingEnvironment.ContentRootPath, hostingEnvironment.EnvironmentName);
 }