COM LocalServer 的 .NET 等价物是什么?

发布于 2024-09-14 09:45:54 字数 154 浏览 2 评论 0原文

在 VB6 中,编写提供 COM 类服务的应用程序是一件简单的事情,该应用程序将作为系统范围的单例运行,并且能够为多个进程提供 COM 类。我相信这被称为 COM LocalServer。

.NET 中的等效项是什么?如何制作一个可执行文件来处理来自多个应用程序或进程的请求?

In VB6, it was a simple matter to write applications that served up COM classes, the application would run as a system-wide singleton and would be able to serve COM classes to multiple processes. I believe this is called a COM LocalServer.

What's the equivalent in .NET? How can I make a single executable that handles requests from multiple applications or processes?

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

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

发布评论

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

评论(2

娇柔作态 2024-09-21 09:45:54

最接近的等效项是 WCF (Windows Communication Foundation)

入门教程

了解 Windows Communication Foundation 编程的基本知识

用于开发 WCF 应用程序的实例管理技术

单例服务才是极致
可共享的服务。当一个服务是
配置为单例,所有客户端
连接到同一个单机
独立于众所周知的实例
彼此,无论哪一个
他们连接的服务的端点
到。单例服务生存
永远,并且只被处理一次
主机关闭。单例是
当主机启动时只创建一次
创建。

The nearest equivalent would be WCF (Windows Communication Foundation)

Getting Started Tutorial

Learn The ABCs Of Programming Windows Communication Foundation

Instance Management Techniques For Developing WCF Apps

The singleton service is the ultimate
shareable service. When a service is
configured as a singleton, all clients
get connected to the same single
well-known instance independently of
each other, regardless of which
endpoint of the service they connect
to. The singleton service lives
forever, and is only disposed of once
the host shuts down. The singleton is
created exactly once when the host is
created.

你又不是我 2024-09-21 09:45:54

我已经有一段时间没有这样做了,但我认为您只是将 ObjectPooling 属性设置为 1?

COM 和 .NET 组件服务

It has been a while since I did it but I think you just set the ObjectPooling attribute to 1?

COM and .NET Component Services

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