Metalama / / API Documentation / Extensions API / Metalama.​Extensions.​Dependency­Injection.​Implementation / IDependency­Injection­Framework / Can­Handle­Dependency
Open sandbox

Method CanHandleDependency

CanHandleDependency(DependencyContext)

Determines whether the current instance can handle a DependencyAttribute aspect or IntroduceDependencyAttribute advice. The implementation can report diagnostics to Diagnostics.

Declaration
bool CanHandleDependency(DependencyContext context)
Parameters
Type Name Description
DependencyContext context

A IntroduceDependencyContext or ImplementDependencyContext.

Returns
Type Description
Boolean