Ejemplo n.º 1
0
 public override IUnityContainer RegisterInstance(Type t, string name, object instance, LifetimeManager lifetime)
 {
     ConfigActions.Add(ConfigurationActionRecord.RegisterInstanceAction(
                           t,
                           name,
                           instance,
                           lifetime));
     return(this);
 }
Ejemplo n.º 2
0
 public override IUnityContainer AddExtension(UnityContainerExtension extension)
 {
     ConfigActions.Add(ConfigurationActionRecord.AddExtensionAction(extension.GetType()));
     return(this);
 }
Ejemplo n.º 3
0
 public IConfigTwo SetMessage(string text)
 {
     ConfigActions.Add(ConfigurationActionRecord.ConfigureExtensionTwoAction(text));
     return(this);
 }
Ejemplo n.º 4
0
 public override IUnityContainer RegisterType(Type from, Type to, string name, LifetimeManager lifetimeManager, params InjectionMember[] injectionMembers)
 {
     ConfigActions.Add(
         ConfigurationActionRecord.RegisterAction(from, to, name, lifetimeManager));
     return(this);
 }
Ejemplo n.º 5
0
 public IConfigOne SetText(string text)
 {
     ConfigActions.Add(ConfigurationActionRecord.ConfigureExtensionOneAction(text));
     return(this);
 }