Ejemplo n.º 1
0
        void InitializeSharedBus(Bus bus)
        {
            if (bus.RequestName(DockManagerBusName) != RequestNameReply.PrimaryOwner)
            {
                Log <DBusManager> .Warn("Bus Name '{0}' is already owned", DockManagerBusName);

                return;
            }

            item_dict = new Dictionary <AbstractDockItem, DockManagerDBusItem> ();

            dock_manager = new DockManagerDBus();

            ObjectPath dockPath = new ObjectPath(DockManagerPath);

            bus.Register(dockPath, dock_manager);
            Log <DBusManager> .Debug("DBus Registered: {0}", DockManagerBusName);
        }
Ejemplo n.º 2
0
		void InitializeSharedBus (Bus bus)
		{
			if (bus.RequestName (DockManagerBusName) != RequestNameReply.PrimaryOwner) {
				Log<DBusManager>.Warn ("Bus Name '{0}' is already owned", DockManagerBusName);
				return;
			}
			
			item_dict = new Dictionary<AbstractDockItem, DockManagerDBusItem> ();
			
			dock_manager = new DockManagerDBus ();
			
			ObjectPath dockPath = new ObjectPath (DockManagerPath);
			bus.Register (dockPath, dock_manager);
			Log<DBusManager>.Debug ("DBus Registered: {0}", DockManagerBusName);
		}