IWebApplicationPlugin
NexusLabs.Needlr.AspNet¶
IWebApplicationPlugin Interface¶
Defines a plugin that configures the Microsoft.AspNetCore.Builder.WebApplication after it has been built. Implement this interface to add middleware, configure endpoints, or perform other post-build configuration.
Remarks¶
Do not apply NexusLabs.Needlr.DoNotAutoRegisterAttribute directly to an implementing class. This interface already carries the attribute to prevent DI registration of the interface itself; adding it to the class too is redundant and was historically a silent bug that suppressed plugin discovery. Analyzer NDLRCOR016 will warn you if you do this.