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

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

            return _instance;
        }
示例#3
0
 public ProxyDataProvider()
 {
     _serverWrapper = MongoDBServerConnectionWrapper.GetInstance();
 }
示例#4
0
 public ProxyDataProvider()
 {
     _serverWrapper = MongoDBServerConnectionWrapper.GetInstance();
 }