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