public static MongoDBServerConnectionWrapper GetInstance()
        {
            if (_instance == null)
            {
                lock (_locker)
                {
                    if (_instance == null)
                    {
                        _instance = new MongoDBServerConnectionWrapper();
                    }
                }
            }

            return _instance;
        }
Пример #2
0
 public DataProviderBase()
 {
     _serverWrapper = MongoDBServerConnectionWrapper.GetInstance();
 }