Exemplo n.º 1
0
        protected override void ApplyToConfiguration(IKernel kernel, IConfiguration compConfig)
        {
            if (_subscribers.Count > 0)
            {
                IConfiguration subscribers = ObtainSubscribers(compConfig);

                foreach (DictionaryEntry entry in _subscribers)
                {
                    IConfiguration     subscriber  = new MutableConfiguration("subscriber");
                    ComponentReference componentId = (ComponentReference)entry.Key;
                    subscriber.Attributes["event"]   = _eventName;
                    subscriber.Attributes["id"]      = componentId.Name;
                    subscriber.Attributes["handler"] = entry.Value.ToString();
                    subscribers.Children.Add(subscriber);
                }
            }
        }
Exemplo n.º 2
0
 public FactorySupportExtension(ComponentReference factoryRef, string factoryCreate)
 {
     factoryId          = factoryRef.Name;
     this.factoryCreate = factoryCreate;
 }
 public FactorySupportExtension(ComponentReference factoryRef, string factoryCreate)
 {
     factoryId = factoryRef.Name;
     this.factoryCreate = factoryCreate;
 }
Exemplo n.º 4
0
 public Extend(ComponentReference reference, IEnumerable <Type> forwardedTypes, params IComponentExtension[] extensions)
     : this(reference.Name, forwardedTypes, extensions)
 {
 }
Exemplo n.º 5
0
 public Extend(ComponentReference reference, Type forwaredType, params IComponentExtension[] extensions)
     : this(reference.Name, forwaredType, extensions)
 {
 }
Exemplo n.º 6
0
 public Extend(ComponentReference reference, IEnumerable<Type> forwardedTypes, params IComponentExtension[] extensions)
     : this(reference.Name, forwardedTypes, extensions)
 {
 }
Exemplo n.º 7
0
 public Extend(ComponentReference reference, Type forwaredType, params IComponentExtension[] extensions)
     : this(reference.Name, forwaredType, extensions)
 {
 }