public BaseAPIConnection GetConnection()
 {
     if (_connection == null)
     {
         lock (_baseapilock)
         {
             if (_connection == null)
             {
                 var server = new BaseAPI();
                 server.CreateConnection();
                 server.Connection.Open(_sessionConnectionString);
                 _connection = server.Connection;
             }
         }
     }
     return _connection;
 }