public void Activate(ITelemetryAdapter telemetryAdapter) { if (telemetryAdapter == null) { throw new ArgumentNullException("telemetryAdapter"); } if (_Adapter != _EmptyAdapter) { _Adapter.Dispose(); } _Adapter = telemetryAdapter; }