gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 08:57:55 26 4
gpt4 key购买 nike

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

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

最佳答案

最接近的等价物是 WCF (Windows 通信基础)

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.

关于.net - COM LocalServer 的 .NET 等价物是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3469199/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com