Пример #1
0
 public static bool IsRegisteredWithKey(this IComponentContext context, object serviceKey, Type serviceType)
 {
     return(context.IsRegisteredService(new KeyedService(serviceKey, serviceType)));
 }
Пример #2
0
 public static bool IsRegistered(this IComponentContext context, Type serviceType)
 {
     return(context.IsRegisteredService(new TypedService(serviceType)));
 }