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); }
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); }