IHostFactory
NexusLabs.Needlr.Hosting¶
IHostFactory Interface¶
Factory interface for creating Microsoft.Extensions.Hosting.IHost instances with Needlr configuration.
Derived
↳ HostFactory
Methods¶
IHostFactory.Create(CreateHostOptions, Func<HostApplicationBuilder>) Method¶
Creates an Microsoft.Extensions.Hosting.IHost using the specified options and builder callback.
Microsoft.Extensions.Hosting.IHost Create(NexusLabs.Needlr.Hosting.CreateHostOptions options, System.Func<Microsoft.Extensions.Hosting.HostApplicationBuilder> createHostApplicationBuilderCallback);
Parameters¶
options CreateHostOptions
The options for creating the host.
createHostApplicationBuilderCallback System.Func<Microsoft.Extensions.Hosting.HostApplicationBuilder>
The callback that creates and configures the Microsoft.Extensions.Hosting.HostApplicationBuilder.
Returns¶
Microsoft.Extensions.Hosting.IHost
The configured Microsoft.Extensions.Hosting.IHost.