Ejemplo n.º 1
0
 public void Dispose()
 {
     if (_disposed)
     {
         return;
     }
     try
     {
         if (_connection != null)
         {
             _connection.Dispose();
             _connection = null;
         }
     }
     finally
     {
         _disposed = true;
     }
 }
Ejemplo n.º 2
0
 public void Connect(object credentials)
 {
     _connectionId = Guid.NewGuid();
     _connection = new Jsr262MBeanServerConnection(_enumerationMaxElements, _serviceUrl);
 }
Ejemplo n.º 3
0
 public void Close()
 {
     _connection.Dispose();
     _connection = null;
 }