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