Ejemplo n.º 1
0
 public static CustomConfiguration LoadConfiguration()
 {
     if (_self == null)
     {
         _self = new CustomConfiguration();
     }
     return(_self);
 }
Ejemplo n.º 2
0
 public DataBase(bool first = false)
 {
     conf       = CustomConfiguration.LoadConfiguration();
     servertype = conf.ServerType;
     if (first)
     {
         IsServerConnected();
     }
     else
     {
         Connect();
     }
 }
Ejemplo n.º 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();
        }
Ejemplo n.º 4
0
 public Benchmark()
 {
     conf = CustomConfiguration.LoadConfiguration(); // might be used for other configurations
     ds   = new DataBase();                          // DataStore take care of db config
 }