public static CustomConfiguration LoadConfiguration() { if (_self == null) { _self = new CustomConfiguration(); } return(_self); }
public DataBase(bool first = false) { conf = CustomConfiguration.LoadConfiguration(); servertype = conf.ServerType; if (first) { IsServerConnected(); } else { Connect(); } }
static void Main(string[] args) { conf = CustomConfiguration.LoadConfiguration(); var db = new DataBase(true); // Test Connection if (conf.load != null) { Benchmark load = new LoadBenchmark(); load.RunBenchMark(); } //Console.WriteLine(conf.load.Operations); Console.WriteLine("Press any key to exit ..."); Console.ReadLine(); }
public Benchmark() { conf = CustomConfiguration.LoadConfiguration(); // might be used for other configurations ds = new DataBase(); // DataStore take care of db config }