Beispiel #1
0
        /// <summary>
        /// This seems to be for Register objects on a DBus server.
        /// When method calls are made to the server Items in RegisteredObjects are used
        /// to respond to them.
        /// </summary>
        /// <param name="path">Path.</param>
        /// <param name="obj">Object.</param>
        public void Register(ObjectPath path, object obj)
        {
            ExportObject eo = ExportObject.CreateExportObject(this, path, obj);

            eo.Registered = true;

            //TODO: implement some kind of tree data structure or internal object hierarchy. right now we are ignoring the name and putting all object paths in one namespace, which is bad
            RegisteredObjects[path] = eo;
        }