Singleton for the host

How to make singleton for the host, not for the application, only using C #. Net? Something similar can be done through shared memory in C ++

+3
source share
1 answer

If I understand it correctly, then you can achieve it as follows: use the singleton template in every application that needs access to a "single-level shared computer." When a singleton object is created, it should try to connect through the remote .net network to the "singleton server" on the local computer. If this fails, it can create it and act as a server.

Is this what you wanted?

+2
source

All Articles