Example #1
0
 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();
     }
 }
Example #3
0
        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();
        }
Example #4
0
 public Benchmark()
 {
     conf = CustomConfiguration.LoadConfiguration(); // might be used for other configurations
     ds   = new DataBase();                          // DataStore take care of db config
 }