Method IsRegisteredWithKey
- Namespace
- Autofac
- Assembly
- Autofac.dll
IsRegisteredWithKey<TService>(IComponentContext, object)
public static bool IsRegisteredWithKey<TService>(this IComponentContext context, object serviceKey) where TService : notnull
Parameters
contextIComponentContextserviceKeyobject
Returns
Type Parameters
TService
IsRegisteredWithKey(IComponentContext, object, Type)
public static bool IsRegisteredWithKey(this IComponentContext context, object serviceKey, Type serviceType)
Parameters
contextIComponentContextserviceKeyobjectserviceTypeType