Exemple #1
0
        private void Add(Object.Description description)
        {
            if (_objects.ContainsKey(description.Path))
            {
                throw new InvalidOperationException("A bus object instance with the same path has already been added");
            }
            else
            {
                Object.Instance instance = _objectFactory.Build(description);

                _busAttachment.Add(instance);

                _objects.Add(description.Path, instance);
            }
        }
Exemple #2
0
 public Instance Build(Description description)
 {
     return new Instance(description);
 }
Exemple #3
0
 public Instance(Description description) : base(description.Path, false)
 {
     _description = description;
 }
Exemple #4
0
        public void Add(Component.IEntity device)
        {
            Object.Description description = _objectFactory.Describe(device);

            Add(description);
        }