Method ResolveOptionalKeyed
- Namespace
- Autofac
- Assembly
- Autofac.dll
ResolveOptionalKeyed<TService>(IComponentContext, object)
public static TService? ResolveOptionalKeyed<TService>(this IComponentContext context, object serviceKey) where TService : class
Parameters
contextIComponentContextserviceKeyobject
Returns
- TService
Type Parameters
TService
ResolveOptionalKeyed<TService>(IComponentContext, object, IEnumerable<Parameter>)
public static TService? ResolveOptionalKeyed<TService>(this IComponentContext context, object serviceKey, IEnumerable<Parameter> parameters) where TService : class
Parameters
contextIComponentContextserviceKeyobjectparametersIEnumerable<Parameter>
Returns
- TService
Type Parameters
TService
ResolveOptionalKeyed<TService>(IComponentContext, object, params Parameter[])
public static TService? ResolveOptionalKeyed<TService>(this IComponentContext context, object serviceKey, params Parameter[] parameters) where TService : class
Parameters
contextIComponentContextserviceKeyobjectparametersParameter[]
Returns
- TService
Type Parameters
TService