开发者

What's the .NET equivalent of a COM LocalServer?

开发者 https://www.devze.com 2023-01-11 20:41 出处:网络
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 b开发者_开发问答e able to serve COM classes to multiple

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 b开发者_开发问答e 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?


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号