コード例 #1
0
 public void Inject <T>(ContractImplement implement) where T : class
 {
     _mapper.AddImplement(typeof(T), new InterfaceImplement()
     {
         ImplementType = implement.ImplementType,
         IsSingleton   = implement.IsSingleton
     });
 }
コード例 #2
0
ファイル: Unity.cs プロジェクト: rajeshwarn/CodeArt-Framework
 public static void Inject <T>(ContractImplement implement) where T : class
 {
     Inject <T>("default", implement);
 }
コード例 #3
0
ファイル: Unity.cs プロジェクト: rajeshwarn/CodeArt-Framework
        public static void Inject <T>(string containerName, ContractImplement implement) where T : class
        {
            IUnityContainer container = GetOrCreateContainer(containerName);

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