wcfCore 记录请求和响应的正确方法

问题描述 投票:0回答:1

如何正确配置 wcfCore 的请求和响应日志记录?

在旧的 wcf 上是:

https://learn.microsoft.com/en-us/dotnet/framework/wcf/diagnostics/configuring-message-logging?redirectedfrom=MSDN

.net-core
1个回答
0
投票

我还没有找到任何配置此类日志记录的选项。因此,我使用接口实现了所需的功能:

IDispatchMessageInspector、IServiceBehavior。

https://github.com/lsmolinski/CoreWCFServiceWithRequestAndResponseLoging

© www.soinside.com 2019 - 2024. All rights reserved.