protected override void OnConfigure(IConfigConfiguration configuration)
        {
            configuration.CacheTimeout = TimeSpan.Zero;

            // legacy configuration
            configuration.UseAppConfig();

            // general settings
            var exeConfigPath = Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly().Location), JsonConfigFileName);

            configuration.UseJsonFile(exeConfigPath);

            // personalized settings
            var homeConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), JsonConfigFileName);

            configuration.UseJsonFile(homeConfigPath);

            // command line
            // TODO: replace current solution with Config.Net
            // configuration.UseCommandLineArgs();
        }
Beispiel #2
0
 protected override void OnConfigure(IConfigConfiguration configuration)
 {
     configuration.CacheTimeout = TimeSpan.FromMinutes(1);
     if (_reverse)
     {
         configuration.UseJsonFile(@".\low.json");
         configuration.UseJsonFile(@".\medium.json");
         configuration.UseJsonFile(@".\high.json");
     }
     else
     {
         configuration.UseJsonFile(@".\high.json");
         configuration.UseJsonFile(@".\medium.json");
         configuration.UseJsonFile(@".\low.json");
     }
 }
 protected override void OnConfigure(IConfigConfiguration configuration)
 {
     configuration.UseJsonFile(@"config/processing/emoeeg2ch.json");
 }
 protected override void OnConfigure(IConfigConfiguration configuration)
 {
     configuration.UseJsonFile(@"config.json");
 }
Beispiel #5
0
 protected override void OnConfigure(IConfigConfiguration configuration)
 {
     configuration.UseJsonFile(@"config/input/openbci.json");
 }
Beispiel #6
0
 protected override void OnConfigure(IConfigConfiguration configuration)
 {
     configuration.UseJsonFile(string.Format(@"{0}\config.json", AppDomain.CurrentDomain.BaseDirectory));
 }