Table of Contents

Method IsRegisteredWithName

Namespace
Autofac
Assembly
Autofac.dll

IsRegisteredWithName<TService>(IComponentContext, string)

public static bool IsRegisteredWithName<TService>(this IComponentContext context, string serviceName) where TService : notnull

Parameters

context IComponentContext
serviceName string

Returns

bool

Type Parameters

TService

IsRegisteredWithName(IComponentContext, string, Type)

public static bool IsRegisteredWithName(this IComponentContext context, string serviceName, Type serviceType)

Parameters

context IComponentContext
serviceName string
serviceType Type

Returns

bool