Table of Contents

Method ResolveKeyed

Namespace
Autofac
Assembly
Autofac.dll

ResolveKeyed<TService>(IComponentContext, object)

public static TService ResolveKeyed<TService>(this IComponentContext context, object serviceKey) where TService : notnull

Parameters

context IComponentContext
serviceKey object

Returns

TService

Type Parameters

TService

ResolveKeyed<TService>(IComponentContext, object, IEnumerable<Parameter>)

public static TService ResolveKeyed<TService>(this IComponentContext context, object serviceKey, IEnumerable<Parameter> parameters) where TService : notnull

Parameters

context IComponentContext
serviceKey object
parameters IEnumerable<Parameter>

Returns

TService

Type Parameters

TService

ResolveKeyed<TService>(IComponentContext, object, params Parameter[])

public static TService ResolveKeyed<TService>(this IComponentContext context, object serviceKey, params Parameter[] parameters) where TService : notnull

Parameters

context IComponentContext
serviceKey object
parameters Parameter[]

Returns

TService

Type Parameters

TService

ResolveKeyed(IComponentContext, object, Type)

public static object ResolveKeyed(this IComponentContext context, object serviceKey, Type serviceType)

Parameters

context IComponentContext
serviceKey object
serviceType Type

Returns

object

ResolveKeyed(IComponentContext, object, Type, IEnumerable<Parameter>)

public static object ResolveKeyed(this IComponentContext context, object serviceKey, Type serviceType, IEnumerable<Parameter> parameters)

Parameters

context IComponentContext
serviceKey object
serviceType Type
parameters IEnumerable<Parameter>

Returns

object

ResolveKeyed(IComponentContext, object, Type, params Parameter[])

public static object ResolveKeyed(this IComponentContext context, object serviceKey, Type serviceType, params Parameter[] parameters)

Parameters

context IComponentContext
serviceKey object
serviceType Type
parameters Parameter[]

Returns

object