Reputation: 17253
I updated my azure application insights and now I am getting the warning
'TelemetryConfiguration.Active is obsolete'
I currently have a method like this
static Load()
{
var pchannel = new inMemoryChannel();
.....
TelemetryConfiguration.Active.TelemetryChannel = pchannel;
}
Do you think it will be safe to substitute
TelemetryConfiguration.Active.TelemetryChannel = pchannel;
with this
TelemetryConfiguration.CreateDefault().TelemetryChannel = pchannel;
This removes the warning.
Upvotes: 4
Views: 7474