private static void OnDBusNameOwnerChanged(string serviceName, string oldOwner, string newOwner) { if (serviceName != BUS_NAME) { return; } if (oldOwner == null && newOwner.Length > 0) { // Service has started SetInstance(); } else { // Service has ended TomboyInstance = null; } }
private static void SetInstance() { TomboyInstance = Bus.Session.GetObject <ITBoy> (BUS_NAME, new ObjectPath(OBJECT_PATH)); }
private static void SetInstance() { TomboyInstance = Bus.Session.GetObject<ITBoy> (BUS_NAME, new ObjectPath (OBJECT_PATH)); }
private static void OnDBusNameOwnerChanged(string serviceName, string oldOwner, string newOwner) { if (serviceName != BUS_NAME) return; if (oldOwner == null && newOwner.Length > 0) // Service has started SetInstance (); else // Service has ended TomboyInstance = null; }