Skip to content

NetWivApplicationBuilder

Namespace NetWiv.Hosting · Assembly NetWiv.Hosting

public sealed class NetWivApplicationBuilder : IHostApplicationBuilder

Builds a NetWiv desktop application on the .NET Generic Host. Services, configuration, logging and hosted services follow the usual IHostApplicationBuilder conventions; desktop settings such as the runtime, windows, commands and plugins are configured through NetWivApplicationBuilder.Desktop.

public ConfigurationManager Configuration { get; }
public Builder Desktop { get; }

The NetWiv desktop configuration: runtime, windows, commands, plugins and security.

public IHostEnvironment Environment { get; }
public ILoggingBuilder Logging { get; }
public IMetricsBuilder Metrics { get; }
public IDictionary<object, object> Properties { get; }
public IServiceCollection Services { get; }
public NetWivApplication Build();

Builds the service provider and the NetWiv app. AppHandle becomes resolvable as a singleton.

public void ConfigureContainer<TContainerBuilder>(IServiceProviderFactory<TContainerBuilder> factory, Action<TContainerBuilder> configure = null);