在C#中创建出进程外COM /。NET? [英] Create Out-Of-Process COM in C#/.Net?
问题描述
我需要建立在C#中,将被多个其他进程在同一机器访问的进程外的COM服务器(.exe文件)。该组件必须是一个单一的过程,因为它会缓存它提供给它的消费者在存储器中的信息。
I need to create an out-of-process COM server (.exe) in C# that will be accessed by multiple other processes on the same box. The component has to be a single process because it will cache the information it provides to its consumers in memory.
注:将访问我的COM服务器的过程大多是Matlab的过程,从而在需要作为一个COM接口
Note: the processes that will access my COM Server are mostly Matlab processes, thus the necessity for a COM interface.
我看到有关的堆栈溢出在.net中创建过程中的COM组件的线程(<一个href=\"http://stackoverflow.com/questions/186640/create-com-component-and-activex-controls-in-net-c-and-net-framework-3-5\">Create COM ... ),并在网络上,但我有一个很难找到一种方法来与.NET创建了进程外组件。
I have seen threads regarding creating in-process COM components in .Net on stack overflow (Create COM ...) and on the web, but am having a hard time to find a way to create out-of-process components with .Net.
这是如何实现的?任何建议参考?
How is this achievable? Any suggested references?
感谢。
推荐答案
一种选择是的服务组件 - 即COM +承载它作为外壳exe文件。又见 HOWTO这里。
One option is serviced components - i.e. host it in COM+ as the shell exe. See also the howto here.
这篇关于在C#中创建出进程外COM /。NET?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!