Exemple #1
0
 private void CreateComponentAdapters()
 {
     foreach (var component in _metadata.Components)
     {
         _components.Add(_componentAdapterFactory.CreateComponentAdapter(component));
     }
 }
Exemple #2
0
 public override IComponentAdapter RegisterComponentImplementation(Object componentKey,
                                                                   Type componentImplementation)
 {
     if (componentKey is Type)
     {
         Type clazz = (Type)componentKey;
         if (clazz.IsInterface)
         {
             IComponentAdapter caDelegate =
                 caf.CreateComponentAdapter(componentKey, componentImplementation, null);
             return
                 (DelegateContainer.RegisterComponent(new ImplementationHidingComponentAdapter(caDelegate, true)));
         }
     }
     return(DelegateContainer.RegisterComponentImplementation(componentKey, componentImplementation));
 }
Exemple #3
0
        public IComponentAdapter RegisterComponentImplementation(object componentKey, Type componentImplementation,
                                                                 IParameter[] parameters)
        {
            IComponentAdapter componentAdapter =
                componentAdapterFactory.CreateComponentAdapter(componentKey, componentImplementation, parameters);

            RegisterComponent(componentAdapter);

            return(componentAdapter);
        }
 public virtual IComponentAdapter CreateComponentAdapter(object componentKey, Type componentImplementation,
                                                         IParameter[] parameters)
 {
     return(theDelegate.CreateComponentAdapter(componentKey, componentImplementation, parameters));
 }