Skip to content

IWebApplicationBuilderPlugin

NexusLabs.Needlr.AspNet

IWebApplicationBuilderPlugin Interface

Defines a plugin that configures the Microsoft.AspNetCore.Builder.WebApplicationBuilder before the application is built. Implement this interface to add services, configure logging, or modify the builder during application startup.

public interface IWebApplicationBuilderPlugin

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.