Windows服务"自托管" WCF:COM pression? [英] Windows Service "self hosted" WCF : compression?

查看:100
本文介绍了Windows服务"自托管" WCF:COM pression?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在IIS中使用COM pression与WCF我能找到的文件,但其面向使用IIS功能。

Using compression with WCF in IIS I can find documentation for, but its oriented towards using IIS features.

我可以找人谈论他们如何写自己的COM pression处理程序,但是这一切看起来pretty的习惯。

I can find people talking about how they've written their own compression handlers, but it all looks pretty custom.

有没有解决COM pressing WCF最佳实践?我们使用HTTP绑定。

Is there a best practice around compressing WCF? We're using http bindings.

编辑:设置该为维基

推荐答案

没有什么现成的来帮助你与此有关。

There's nothing out of the box to help you with this.

您确实可以实现自己的COM pression扩展WCF - 几个人都做到了,你应该能够找到它使用您喜欢的搜索引擎。

You can indeed implement your own compression extensions for WCF - several folks have done it, and you should be able to find it using your favorite search engine.

但是你可以做你绑定的最好的事情 - 只要你的客户都是你的控制之下,你可以轻松地将它们配置 - 是使用二进制消息编码与文本重新$ P $消息psentations

But the best thing you could do for your bindings - as long as your clients all are under your control and you can easily configure them - would be to use binary message encoding vs. textual representations of messages.

您可以轻松地把二进制消息编码,HTTP传输 - 你需要一个自定义绑定,但是这真的不是什么大不了的。很多人都这样做了,太 - 因此你可以从包括已经完成的工作中受益:

You can easily combine binary message encoding with http transport - you need a custom binding, but that's really not a big deal at all. Lots of folks have done that, too - so you can benefit from work that's already been done:

  • Binary Http Binding by Nicolas Allen (member of the WCF team at Microsoft)
  • Silverlight 3 WCF Binary Message Encoding
  • WCF Binary Bindings in Silverlight 3 by John Papa (Silverlight envangelist)
  • WCF: Enable Binary Encoding Over Http

这篇关于Windows服务"自托管" WCF:COM pression?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆