Table of Contents

Method IsRegisteredWithKey

Namespace
Autofac
Assembly
Autofac.dll

IsRegisteredWithKey<TService>(IComponentContext, object)

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

Parameters

context IComponentContext
serviceKey object

Returns

bool

Type Parameters

TService

IsRegisteredWithKey(IComponentContext, object, Type)

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

Parameters

context IComponentContext
serviceKey object
serviceType Type

Returns

bool