Skip to content

NexusLabs.Needlr.Hosting

NexusLabs.Needlr.Hosting Namespace

Classes
CreateHostOptions Represents options for creating a host application with logging configuration.
CreateHostOptionsExtensions Provides extension methods for configuring CreateHostOptions.
HostApplicationBuilderNeedlrExtensions Extension methods for integrating Needlr discovery into user-controlled Microsoft.Extensions.Hosting.HostApplicationBuilder instances. Use this when you want to maintain control over the host creation process while still benefiting from Needlr's automatic service discovery and plugin system.
HostApplicationBuilderPluginOptions Options passed to NexusLabs.Needlr.Hosting.IHostApplicationBuilderPlugin.Configure(NexusLabs.Needlr.Hosting.HostApplicationBuilderPluginOptions).
HostFactory Factory for creating Microsoft.Extensions.Hosting.IHost instances with Needlr configuration.
HostPluginOptions Options passed to NexusLabs.Needlr.Hosting.IHostPlugin.Configure(NexusLabs.Needlr.Hosting.HostPluginOptions).
HostSyringe Provides a fluent API for configuring and building host applications using Needlr. Wraps a ConfiguredSyringe with additional host functionality.
HostSyringeExtensions Extension methods for configuring HostSyringe instances. Provides only host-specific configuration methods.
IHostFactoryExtensions Extension methods for IHostFactory.
NeedlrBootstrapContext Contextual data passed to the RunAsync(Func<NeedlrBootstrapContext,CancellationToken,Task>, CancellationToken) callback. Provides access to a bootstrap logger that is available before the DI container is built.
NeedlrBootstrapper Wraps an application entry point with bootstrap lifecycle management: a pre-DI logger, top-level exception handling, and guaranteed cleanup.
NeedlrBootstrapperExtensions Extension methods for configuring NeedlrBootstrapper instances.
SyringeHostingExtensions Extension methods for configuring NexusLabs.Needlr.Injection.ConfiguredSyringe instances with generic host functionality.
Interfaces
IHostApplicationBuilderPlugin Plugin that configures the Microsoft.Extensions.Hosting.HostApplicationBuilder before the host is built. Analogous to IWebApplicationBuilderPlugin for web apps.
IHostFactory Factory interface for creating Microsoft.Extensions.Hosting.IHost instances with Needlr configuration.
IHostPlugin Plugin that configures the Microsoft.Extensions.Hosting.IHost after it's built but before it runs. Analogous to IWebApplicationPlugin for web apps.