Method ResolveOptional
- Namespace
- Autofac
- Assembly
- Autofac.dll
ResolveOptional<TService>(IComponentContext)
public static TService? ResolveOptional<TService>(this IComponentContext context) where TService : class
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 : class
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 : class
Parameters
contextIComponentContextparametersParameter[]
Returns
- TService
Type Parameters
TService
ResolveOptional(IComponentContext, Type)
public static object? ResolveOptional(this IComponentContext context, Type serviceType)
Parameters
contextIComponentContextserviceTypeType
Returns
ResolveOptional(IComponentContext, Type, IEnumerable<Parameter>)
public static object? ResolveOptional(this IComponentContext context, Type serviceType, IEnumerable<Parameter> parameters)
Parameters
contextIComponentContextserviceTypeTypeparametersIEnumerable<Parameter>
Returns
ResolveOptional(IComponentContext, Type, params Parameter[])
public static object? ResolveOptional(this IComponentContext context, Type serviceType, params Parameter[] parameters)
Parameters
contextIComponentContextserviceTypeTypeparametersParameter[]