Beispiel #1
0
 /// <summary>
 /// 按key获取组件
 /// </summary>
 /// <typeparam name="TService">组件类型</typeparam>
 /// <param name="serviceKey">枚举类型的Key</param>
 /// <returns>返回获取的组件</returns>
 public static TService ResolveKeyed <TService>(object serviceKey)
 {
     return(ResolutionExtensions.ResolveKeyed <TService>(_container, serviceKey));
 }