Table of Contents

Method IsRegistered

Namespace
Autofac
Assembly
Autofac.dll

IsRegistered<TService>(IComponentContext)

public static bool IsRegistered<TService>(this IComponentContext context) where TService : notnull

Parameters

context IComponentContext

Returns

bool

Type Parameters

TService

IsRegistered(IComponentContext, Type)

public static bool IsRegistered(this IComponentContext context, Type serviceType)

Parameters

context IComponentContext
serviceType Type

Returns

bool