Metalama / / API Documentation / Extensions API / Metalama.​Extensions.​Dependency­Injection / Dependency­Injection­Options / Register­Framework

Method RegisterFramework


Registers an implementation of the IDependencyInjectionFramework interface with highest priority. The registration is ignored if another framework of the same was already registered. This method is typically called from the transitive project fabric of libraries that implement a specific dependency injection framework so that they are registered first by default. In a user project, you should rather set the RegisteredFrameworks property.

public bool RegisterFramework(IDependencyInjectionFramework framework)
Type Name Description
IDependencyInjectionFramework framework
Type Description

true if framework was registered, or false if a framework of the same type was already registered.