Skip to content

HostPluginOptions

NexusLabs.Needlr.Hosting

HostPluginOptions Class

Options passed to NexusLabs.Needlr.Hosting.IHostPlugin.Configure(NexusLabs.Needlr.Hosting.HostPluginOptions).

public sealed record HostPluginOptions : System.IEquatable<NexusLabs.Needlr.Hosting.HostPluginOptions>

Inheritance System.Object 🡒 HostPluginOptions

Implements System.IEquatable<HostPluginOptions>

Constructors

HostPluginOptions(IHost, IReadOnlyList<Assembly>, IPluginFactory) Constructor

Options passed to NexusLabs.Needlr.Hosting.IHostPlugin.Configure(NexusLabs.Needlr.Hosting.HostPluginOptions).

public HostPluginOptions(Microsoft.Extensions.Hosting.IHost Host, System.Collections.Generic.IReadOnlyList<System.Reflection.Assembly> Assemblies, NexusLabs.Needlr.IPluginFactory PluginFactory);

Parameters

Host Microsoft.Extensions.Hosting.IHost

The built host being configured.

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

HostPluginOptions.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>

HostPluginOptions.Host Property

The built host being configured.

public Microsoft.Extensions.Hosting.IHost Host { get; init; }

Property Value

Microsoft.Extensions.Hosting.IHost

HostPluginOptions.PluginFactory Property

Factory for creating additional plugin instances.

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

Property Value

NexusLabs.Needlr.IPluginFactory