public AgentConnection82(IAgent agent, ComConnector82 connector) { if (agent == null) { throw new ArgumentNullException(nameof(agent)); } if (connector == null) { throw new ArgumentNullException(nameof(connector)); } Agent = agent; _connection = connector.ComConnector.ConnectAgent(agent.ConnectionString); }
private void Dispose(bool disposing) { if (_disposed) { return; } ReleaseClusterInfos(); if (_connection != null) { Marshal.ReleaseComObject(_connection); _connection = null; } _disposed = true; }