Exemple #1
0
 public void Inject <T>(ContractImplement implement) where T : class
 {
     _mapper.AddImplement(typeof(T), new InterfaceImplement()
     {
         ImplementType = implement.ImplementType,
         IsSingleton   = implement.IsSingleton
     });
 }
 public static void Inject <T>(ContractImplement implement) where T : class
 {
     Inject <T>("default", implement);
 }
        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);
 }
Exemple #5
0
 public void Inject <T>(ContractImplement implement) where T : class
 {
 }