Beispiel #1
0
 public void Inject <T>(ContractImplement implement) where T : class
 {
     _mapper.AddImplement(typeof(T), new InterfaceImplement()
     {
         ImplementType = implement.ImplementType,
         IsSingleton   = implement.IsSingleton
     });
 }
Beispiel #2
0
 public static void Inject <T>(ContractImplement implement) where T : class
 {
     Inject <T>("default", implement);
 }
Beispiel #3
0
        public static void Inject <T>(string containerName, ContractImplement implement) where T : class
        {
            IUnityContainer container = GetOrCreateContainer(containerName);

            container.Inject <T>(implement);
        }
 public static void Inject <T>(string contextName, ContractImplement implement) where T : class
 {
     Unity.Inject <T>(contextName, implement);
 }
Beispiel #5
0
 public void Inject <T>(ContractImplement implement) where T : class
 {
 }