加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c# – Azure SDK 2.5中不推荐使用的类

发布时间:2020-12-15 04:12:40 所属栏目:百科 来源:网络整理
导读:我们目前正致力于将Azure SDK版本从2.2升级到2.5,这是目前的最新版本. 当我这样做时,我注意到以下类被标记为已弃用: DeploymentDiagnosticManager DiagnosticMonitorConfiguration DiagnosticMonitor 当我进入关于这些类的MSDN页面时,它没有任何异常. http:
我们目前正致力于将Azure SDK版本从2.2升级到2.5,这是目前的最新版本.

当我这样做时,我注意到以下类被标记为已弃用:
DeploymentDiagnosticManager
DiagnosticMonitorConfiguration
DiagnosticMonitor

当我进入关于这些类的MSDN页面时,它没有任何异常.
http://msdn.microsoft.com/en-us/library/azure/microsoft.windowsazure.diagnostics.diagnosticmonitorconfiguration.aspx

当这些类被弃用时,有没有人知道我应该用于诊断?

解决方法

查看Azure SDK for .NET 2.5发行说明的 Breaking Changes时:

Diagnostics configuration in code is no longer supported – With the Azure SDK version 2.5,all diagnostics configuration must be done in the XML configuration file diagnostics.wadcfgx. Any previous code-based diagnostics configuration (for example,using the DiagnosticMonitor API) must be migrated to the diagnostics.wadcfgx file. Code used to configure crash dumps in previous SDKs must also be migrated to the diagnostics.wadcfgx file.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读