Table of Contents

Method TryResolveService

Namespace
Autofac
Assembly
Autofac.dll

TryResolveService(IComponentContext, Service, out object?)

public static bool TryResolveService(this IComponentContext context, Service service, out object? instance)

Parameters

context IComponentContext
service Service
instance object

Returns

bool

TryResolveService(IComponentContext, Service, IEnumerable<Parameter>, out object?)

public static bool TryResolveService(this IComponentContext context, Service service, IEnumerable<Parameter> parameters, out object? instance)

Parameters

context IComponentContext
service Service
parameters IEnumerable<Parameter>
instance object

Returns

bool