简体   繁体   中英

What is the difference between the TelemetryConfiguration.CreateDefault and the new TelemetryConfiguration()?

What is the difference between the TelemetryConfiguration.CreateDefault and the new TelemetryConfiguration() ?

I am talking about the types from the Microsoft.ApplicationInsights.Extensibility namespace. Both seem to work the same.

If you are using the TelemetryConfiguration() then you have to manually set the ConnectionString property, but the TelemetryConfiguration.CreateDefault() factory method loads the ApplicationInsights.config file if it exists and some defaults.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM