Metalama 1.0 / / Metalama Documentation / Aspect API Documentation / Metalama.​Framework.​Dependency­Injection.​Implementation / Default­Dependency­Injection­Framework / Can­Handle­Dependency

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
public virtual bool CanHandleDependency(DependencyContext context)
Parameters
Type Name Description
DependencyContext context

A IntroduceDependencyContext or ImplementDependencyContext.

Returns
Type Description
Boolean
Implements
IDependencyInjectionFramework.CanHandleDependency(DependencyContext)