Can a Singleton Class inside a DLL be shared across processes?

前端 未结 5 2104
眼角桃花
眼角桃花 2020-12-06 01:27

I am creating a custom .net hardware framework that will be used by other programmers to control some hardware. They will add a reference to our DLL to get to our hardware f

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-06 01:56

    There are ways to do it as mentioned above. But it is clumsy if you use WCF or remoting. Please try interprocess thread sync techniques.

    For more info read the online free e-book on threading

    http://www.albahari.com/threading/

    Specially see the cross process sync constructs here ...

    http://www.albahari.com/threading/part2.aspx#_Synchronization_Essentials

提交回复
热议问题