Esempio n. 1
0
 public static bool IsRegisteredWithKey(this IComponentContext context, object serviceKey, Type serviceType)
 {
     return(context.IsRegisteredService(new KeyedService(serviceKey, serviceType)));
 }
Esempio n. 2
0
 public static bool IsRegistered(this IComponentContext context, Type serviceType)
 {
     return(context.IsRegisteredService(new TypedService(serviceType)));
 }