Method ResolveOptional
- Namespace
- Autofac
- Assembly
- Autofac.dll
ResolveOptional<TService>(IComponentContext)
public static TService? ResolveOptional<TService>(this IComponentContext context) where TService : struct
Parameters
contextIComponentContext
Returns
- TService?
Type Parameters
TService
ResolveOptional<TService>(IComponentContext, IEnumerable<Parameter>)
public static TService? ResolveOptional<TService>(this IComponentContext context, IEnumerable<Parameter> parameters) where TService : struct
Parameters
contextIComponentContextparametersIEnumerable<Parameter>
Returns
- TService?
Type Parameters
TService
ResolveOptional<TService>(IComponentContext, params Parameter[])
public static TService? ResolveOptional<TService>(this IComponentContext context, params Parameter[] parameters) where TService : struct
Parameters
contextIComponentContextparametersParameter[]
Returns
- TService?
Type Parameters
TService