Exemple #1
0
 /// <summary>
 /// 以类型方式注入
 /// </summary>
 /// <typeparam name="T">服务类型</typeparam>
 /// <typeparam name="V">实际类型</typeparam>
 /// <param name="scope">注入范围</param>
 public static void Inject <T, V>(InjectionScope scope)
     where T : class
     where V : class, T
 {
     _diContainer.Inject <T, V>(scope);
 }