public void RemoveReconnectionProcessor(ReconnectionProcessor processor) { if (_reconnectionProcessor != null) { if (_reconnectionProcessor.GetInvocationList().Contains(processor)) { _reconnectionProcessor -= processor; } } }
public void AddReconnectionProcessor(ReconnectionProcessor processor) { if (_reconnectionProcessor == null) { _reconnectionProcessor = processor; } else { if (_reconnectionProcessor.GetInvocationList().Contains(processor)) { _reconnectionProcessor += processor; } } }