public static void Terminate() { lock (sync) { instance = null; } }
public DeviceEventController() { lock (sync) { if (instance == null) instance = this; else throw new Exception ("Attempt to create a second device event controller"); } ObjectPath op = new ObjectPath ("/org/a11y/atspi/registry/deviceeventcontroller"); proxy = Registry.Bus.GetObject<IDeviceEventController> ("org.a11y.atspi.Registry", op); }