Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何计算服务执行期间抛出的异常数量?现在我正在使用行为来使用 IOperationInvoker 和 IParameterInspector 与调度程序挂钩。但我需要知道如何计算特定操作中发生的故障和异常或整个服务中发生的总次数。
存在几种方法。您可以使用跟踪(并检查您的日志文件);通过检测,即使用性能计数器来监控服务或操作的故障。
如果您可以使用 AppFabric,也可以通过 AppFabric 获得实现服务监控的好方法。
高温高压