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