HostFactory
NexusLabs.Needlr.Hosting¶
HostFactory Class¶
Factory for creating Microsoft.Extensions.Hosting.IHost instances with Needlr configuration.
Inheritance System.Object 🡒 HostFactory
Implements IHostFactory
Constructors¶
HostFactory(IServiceProviderBuilder, IServiceCollectionPopulator, IPluginFactory) Constructor¶
Factory for creating Microsoft.Extensions.Hosting.IHost instances with Needlr configuration.
public HostFactory(NexusLabs.Needlr.Injection.IServiceProviderBuilder _serviceProviderBuilder, NexusLabs.Needlr.Injection.IServiceCollectionPopulator _serviceCollectionPopulator, NexusLabs.Needlr.IPluginFactory _pluginFactory);
Parameters¶
_serviceProviderBuilder NexusLabs.Needlr.Injection.IServiceProviderBuilder
_serviceCollectionPopulator NexusLabs.Needlr.Injection.IServiceCollectionPopulator
_pluginFactory NexusLabs.Needlr.IPluginFactory
Methods¶
HostFactory.Create(CreateHostOptions, Func<HostApplicationBuilder>) Method¶
Creates an Microsoft.Extensions.Hosting.IHost using the specified options and builder callback.
public 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.
Implements Create(CreateHostOptions, Func<HostApplicationBuilder>)
Returns¶
Microsoft.Extensions.Hosting.IHost
The configured Microsoft.Extensions.Hosting.IHost.