Skip to content

MachineLevelGuardian

Iuga Alexandru edited this page Jan 6, 2018 · 3 revisions

Description

This class ensures that an instance of itself with the same name can not be created on different processes on same machine.

It is useful to ensure that a single instance of the application is running on the current machine.

Example

MachineLevelGuardian guardian = new MachineLevelGuardian("MyApp"); // Throws if cannot instantiate.

For a complete example please see the demo application.

Clone this wiki locally