Ejemplo n.º 1
0
        /// <inheritdoc />
        public void Dispose()
        {
            if (_telemetryClient != null)
            {
                _telemetryClient.Flush();
            }

            if (_telemetryConfiguration != null)
            {
                _telemetryConfiguration.Dispose();
                _telemetryConfiguration = null;
            }

            if (_telemetryChannel != null)
            {
                _telemetryChannel?.Dispose();
                _telemetryChannel = null;
            }
        }