可插拔 MIME 过滤器的实现示例(最好用 C# 实现)?
任何人都知道 可插入 MIME 的良好示例实现IE 的过滤器,最好用 C# 实现? 或者可插入的协议处理程序?
谢谢!
到目前为止,我已经找到
这个示例: http://www.bsalsa.com/forum/showpost。 php?p=3031&postcount=4 (简要记录此处)(均来自上面的SO问题)
此示例来自 MSFT(但不使用 C#)
Anyone know of a good sample implementation of a Pluggable MIME Filter for IE, preferably implemented in C#? Or of a pluggable protocol handler?
thanks!
So far I have found
This SO question with sample code
this sample:
http://www.bsalsa.com/forum/showpost.php?p=3031&postcount=4
(which is briefly documented here) (both from the SO question above)This sample from MSFT (but not using C#)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在与 Microsoft 支持人员合作几周后,我们确定用 .NET 编写的 MIME 过滤器无法正常工作。 互操作层中似乎存在许多线程安全问题,导致 IE 随机崩溃。
我按照您上面链接的相同示例在 C++ 中重新实现了我的 MIME 过滤器,并且工作正常。
After working with Microsoft support for a couple of weeks, we determined that MIME filters written in .NET do not work correctly. There appear to be a number of thread-safety issues in the interop layers that cause random crashes of IE.
I've reimplemented my MIME filter in C++ following the same sample you linked to above, and it works fine.
http://www.codeproject.com/aspnet/AspxProtocol.asp 是我的最爱。 但请注意,使用 .NET 作为协议处理程序通常会产生相当大的性能成本,并且如果有其他基于 .NET 的组件尝试在需要不同版本的浏览器中运行,则可能会出现版本控制问题CLR 的。
http://www.codeproject.com/KB/IP/DataProtocol.aspx 是另一种选择。
http://www.codeproject.com/aspnet/AspxProtocol.asp is my favorite. Note, however, that using .NET for a protocol handler is generally going to incur a pretty significant performance cost, and there may be a versioning problem if there are other .NET-based components attempting to run in the browser that require a different version of the CLR.
http://www.codeproject.com/KB/IP/DataProtocol.aspx is another option.