src/Orleans.Core/Telemetry/TelemetryManager.cs
/// <summary>
/// Adds a collection of telemetry consumers.
/// </summary>
/// <param name="newConsumers">The new consumers.</param>
Adds a collection of telemetry consumers.
Adds a collection of telemetry consumers .
public void AddConsumers(IEnumerable<ITelemetryConsumer> newConsumers)
        {
            this.consumers = new List<ITelemetryConsumer>(this.consumers.Union(newConsumers));
            this.metricTelemetryConsumers = this.consumers.OfType<IMetricTelemetryConsumer>().ToList();
            this.traceTelemetryConsumers = this.consumers.OfType<ITraceTelemetryConsumer>().ToList();
        }
public void AddConsumers ( IEnumerable < ITelemetryConsumer > newConsumers ) { this . consumers = new List < ITelemetryConsumer > ( this . consumers . Union ( newConsumers ) ) ; this . metricTelemetryConsumers = this . consumers . OfType < IMetricTelemetryConsumer > ( ) . ToList ( ) ; this . traceTelemetryConsumers = this . consumers . OfType < ITraceTelemetryConsumer > ( ) . ToList ( ) ; }
Adds a collection of telemetry consumers.
Adds a collection of telemetry consumers .
newConsumers
IEnumerable<ITelemetryConsumer>
The new consumers.
The new consumers .