排除一个特定终结点的 WCF ServiceBehaviorExtension

发布于 2024-12-25 13:22:25 字数 109 浏览 2 评论 0 原文

我想排除自定义行为扩展,它需要我的一项服务的自定义标头。是否可以?我读到了有关RemoveBehaviorExtension 元素的内容,但没有提及在哪里使用它。

任何帮助表示赞赏!谢谢!

I would like to exclude the custom Behavior extension which expects a custom Header for one of my service. Is it possible? I read about RemoveBehaviorExtension element but there is no mention on where to use it.

Any help is appreciated! Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

欢烬 2025-01-01 13:22:25

好的,我之前创建了一个单独的端点行为,没有BehaviorExtensions 节点。但它失败了,当进一步检查时,这是一个超时异常,这仍然困扰着我。通过增加超时修改了外部客户端,并修改了我的服务以使端点具有单独的端点行为,问题得到了解决。谢谢!

Okay, i had earlier created a separate Endpoint behavior with out the BehaviorExtensions node. But it failed, when examined further it was a timeout exception which was troubling me still. Modified the external client with an increased timeout and modified my service to have the endpoint with a seperate Endpoint behavior the issue got resolved. Thanks!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文