Table of Contents

Method ResolveOptional

Namespace
Autofac
Assembly
Autofac.dll

ResolveOptional<TService>(IComponentContext)

public static TService? ResolveOptional<TService>(this IComponentContext context) where TService : struct

Parameters

context IComponentContext

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

context IComponentContext
parameters IEnumerable<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

context IComponentContext
parameters Parameter[]

Returns

TService?

Type Parameters

TService