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