Skip to content

WebApplicationPluginOptions

NexusLabs.Needlr.AspNet

WebApplicationPluginOptions Class

Options provided to IWebApplicationPlugin implementations during configuration. Contains the built web application, discovered assemblies, and plugin factory.

public sealed record WebApplicationPluginOptions : System.IEquatable<NexusLabs.Needlr.AspNet.WebApplicationPluginOptions>

Inheritance System.Object 🡒 WebApplicationPluginOptions

Implements System.IEquatable<WebApplicationPluginOptions>

Constructors

WebApplicationPluginOptions(WebApplication, IReadOnlyList<Assembly>, IPluginFactory) Constructor

Options provided to IWebApplicationPlugin implementations during configuration. Contains the built web application, discovered assemblies, and plugin factory.

public WebApplicationPluginOptions(Microsoft.AspNetCore.Builder.WebApplication WebApplication, System.Collections.Generic.IReadOnlyList<System.Reflection.Assembly> Assemblies, NexusLabs.Needlr.IPluginFactory PluginFactory);

Parameters

WebApplication Microsoft.AspNetCore.Builder.WebApplication

The built web application to configure.

Assemblies System.Collections.Generic.IReadOnlyList<System.Reflection.Assembly>

The candidate assemblies selected by Needlr. Source-generated discovery includes every generated TypeRegistry participant, including empty registries, when assembly metadata is available.

PluginFactory NexusLabs.Needlr.IPluginFactory

Factory for creating additional plugin instances.

Properties

WebApplicationPluginOptions.Assemblies Property

The candidate assemblies selected by Needlr. Source-generated discovery includes every generated TypeRegistry participant, including empty registries, when assembly metadata is available.

public System.Collections.Generic.IReadOnlyList<System.Reflection.Assembly> Assemblies { get; init; }

Property Value

System.Collections.Generic.IReadOnlyList<System.Reflection.Assembly>

WebApplicationPluginOptions.PluginFactory Property

Factory for creating additional plugin instances.

public NexusLabs.Needlr.IPluginFactory PluginFactory { get; init; }

Property Value

NexusLabs.Needlr.IPluginFactory

WebApplicationPluginOptions.WebApplication Property

The built web application to configure.

public Microsoft.AspNetCore.Builder.WebApplication WebApplication { get; init; }

Property Value

Microsoft.AspNetCore.Builder.WebApplication