public static void RegisterService(IService service) { Add(service); if (service is IDBusExportable) { DBusServiceManager.RegisterObject((IDBusExportable)service); } }
public static void RegisterService(IService service) { lock (self_mutex) { services.Add(service.ServiceName, service); if (service is IDBusExportable) { DBusServiceManager.RegisterObject((IDBusExportable)service); } } }