public static void InitConnection(string mongoUrl)
 {
     if (Instance == null)
         lock (_locker)
             if (Instance == null)
                 Instance = Connect(mongoUrl);
 }
 public static void InitConnection(string host, int? port, string dbName)
 {
     if (Instance == null)
         lock (_locker)
             if (Instance == null)
                 Instance = Connect(host, port, dbName);
 }
 public static void InitConnection(string mongoUrl)
 {
     if (Instance == null)
     {
         lock (_locker)
             if (Instance == null)
             {
                 Instance = Connect(mongoUrl);
             }
     }
 }
 public static void InitConnection(string host, int?port, string dbName)
 {
     if (Instance == null)
     {
         lock (_locker)
             if (Instance == null)
             {
                 Instance = Connect(host, port, dbName);
             }
     }
 }