コード例 #1
0
 public void RegisterInstance <T>(string name, T instance)
 {
     lock (this.container)
     {
         UnityContainerExtensions.RegisterInstance <T>(this.container, name, instance);
     }
 }
コード例 #2
0
 public IContainer RegisterInstance(Type t, string name, object instance)
 {
     UnityContainerExtensions.RegisterInstance(this._container, t, name, instance);
     return(this);
 }