示例#1
0
        public static void RegisterService(IService service)
        {
            Add(service);

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

                if (service is IDBusExportable)
                {
                    DBusServiceManager.RegisterObject((IDBusExportable)service);
                }
            }
        }