Coree.NETStandard
  • API
Show / Hide Table of Contents
  • Coree.NETStandard.Abstractions.DependencySingleton
    • DependencySingleton<T>
    • IDependencySingleton
  • Coree.NETStandard.Abstractions.FluentBase
    • FluentBase
    • IFluentBase
  • Coree.NETStandard.Abstractions.InitializationService
    • InitializationDependentServices
    • InitializationService
  • Coree.NETStandard.Abstractions.ServiceFactory
    • ServiceFactory<T>
  • Coree.NETStandard.Abstractions.ServiceFactoryEx
    • ServiceFactoryEx<T>
    • ServiceFactoryEx<T, K, R, S, U, V, W, X, Y, Z>
    • ServiceFactoryEx<T, K>
    • ServiceFactoryEx<T, K, R>
    • ServiceFactoryEx<T, K, R, S>
    • ServiceFactoryEx<T, K, R, S, U>
    • ServiceFactoryEx<T, K, R, S, U, V>
    • ServiceFactoryEx<T, K, R, S, U, V, W>
    • ServiceFactoryEx<T, K, R, S, U, V, W, X>
    • ServiceFactoryEx<T, K, R, S, U, V, W, X, Y>
  • Coree.NETStandard.Classes.AsyncEventCollection
    • AsyncEventCollection<T>
    • AsyncEventCollection<T>.CustomEventDelegate
  • Coree.NETStandard.Classes.CommonDistinguishedNameBuilder
    • CommonDistinguishedNameBuilder
    • DistinguishedName
  • Coree.NETStandard.Classes.Criteria
    • CriteriaComparisonMethod
    • CriteriaEnumerableExtensions
    • CriteriaExpressionBuilder
    • CriteriaItem<TValue>
    • CriteriaItems
    • CriteriaOperator
    • CriteriaQueryableExtensions
  • Coree.NETStandard.Classes.HttpRequestService
    • ContentComposer
    • HttpRequestHeadersExtensions
    • HttpRequestService
    • HttpRequestServiceHandler
    • HttpRequestServiceUriExtensions
    • ServiceCollectionExtensions
    • TransactionRecord
  • Coree.NETStandard.Classes.Scheduler
    • Scheduler
    • Scheduler.TickerEventArgs
    • Scheduler.TickerEventDelegate
  • Coree.NETStandard.Classes.ThreadSafeCollection
    • ThreadSafeCollection<T>
  • Coree.NETStandard.Classes.ThreadSafeValue
    • ThreadSafeValue<T>
  • Coree.NETStandard.Classes.TimeOfDay
    • TimeOfDay
  • Coree.NETStandard.Extensions.Collections.Enumerable
    • CollectionsEnumerableExtensions
  • Coree.NETStandard.Extensions.Collections.List
    • CollectionsListExtensions
  • Coree.NETStandard.Extensions.Conversions.ByteArray
    • ConversionsByteArrayExtensions
  • Coree.NETStandard.Extensions.Conversions.HostApplicationBuilder
    • ConversionsHostApplicationBuilderExtensions
  • Coree.NETStandard.Extensions.Conversions.String
    • ConversionsStringExtensions
    • Encodings
  • Coree.NETStandard.Extensions.Conversions.Stringbuilder
    • ConversionsStringbuilderExtension
  • Coree.NETStandard.Extensions.Enums
    • EnumExtensions
  • Coree.NETStandard.Extensions.Http.HttpHeader
    • HttpHeadersExtensions
  • Coree.NETStandard.Extensions.Primitives.Bool
    • PrimitivesBoolExtensions
  • Coree.NETStandard.Extensions.Reflection.ServiceProvider
    • ReflectionServiceProviderExtensions
  • Coree.NETStandard.Extensions.ServiceCollection
    • ServiceCollectionExtensions
  • Coree.NETStandard.Extensions.Threading.CancellationToken
    • ThreadingCancellationTokenExtensions
  • Coree.NETStandard.Extensions.Utilities
    • DateTimeExtensions
  • Coree.NETStandard.Extensions.Validations.String
    • ValidationsStringExtensions
  • Coree.NETStandard.HostedServicesCollection
    • HostedServicesCollectionConfig<T>
    • IHostedServicesCollectionConfig<T>
    • ServiceCollectionExtensions
    • ServiceProviderExtensions
  • Coree.NETStandard.Serilog
    • ConditionalLevelSink
    • CustomTheme
    • LoggerSinkConfigurationExtensions
    • OutputTemplates
    • ServiceCollectionExtensions
    • SourceContextShortEnricher
  • Coree.NETStandard.Services.DebugManagement
    • DebugService
    • IDebugService
  • Coree.NETStandard.Services.DirectoryOperationsManagement
    • DirectoryOperationsService
    • IDirectoryOperationsService
  • Coree.NETStandard.Services.FileManagement
    • FileService
    • IFileService
  • Coree.NETStandard.Services.FileOperationsManagement
    • FileOperationsService
    • FileOperationsService.FileSystemEntry
    • FileOperationsService.FileSystemInformation
    • FileOperationsService.VerifiedCopyStatus
    • IFileOperationsService
  • Coree.NETStandard.Services.HashManagement
    • HashService
    • IHashService
  • Coree.NETStandard.Services.NetworkManagement
    • INetworkService
    • NetworkService
    • NetworkService.IpAdressInformation
    • NetworkService.NetworkInterfaceDetail
  • Coree.NETStandard.Services.ProcessManagement
    • IProcessService
    • ProcessRunExitCodeState
    • ProcessRunResult
    • ProcessService
  • Coree.NETStandard.Services.RuntimeInsightsManagement
    • IRuntimeInsightsService
    • RuntimeInsightsService
  • Coree.NETStandard.SpectreConsole
    • CommandAppExtensions
    • HostBuilderExtensions
    • ServiceCollectionExtensions
    • SpectreConsoleHostedService
    • SpectreConsoleHostedService.ExitCode
    • SpectreConsoleTypeRegistrar
    • SpectreConsoleTypeResolver
  • Coree.NETStandard.UnderConstruction
    • DbContextExtensions
    • HttpClientStatic
    • HttpClientStatic.HttpClientResponse
    • HttpClientStatic.XRate
    • HttpClientStatic.XRateGroup
    • HttpClientStatic.XRateItem
    • IScheduleProvider
    • IntervalScheduleProvider
    • LimitedHistory<T>
    • ScheduleCombiner
    • Scheduler
    • Scheduler.TickerEventArgs
    • Scheduler.TickerEventDelegate
    • Scheduler2
    • Scheduler2.TickerEventArgs
    • Scheduler2.TickerEventDelegate
    • Scheduler3
    • Scheduler3.TickerEventArgs
    • Scheduler3.TickerEventDelegate
    • SqlliteMemoryContext
    • SqlliteMemoryContext.UserDataDto
    • TimedEntry<T>
    • Timing
    • Timing.Ticker
    • Timing.Ticker.TickerEventArgs
    • Timing.TickerSync
    • WeekDayAtScheduleProvider
  • Coree.NETStandard.Utilities
    • EventSubscription
    • MainContext

Class ConversionsHostApplicationBuilderExtensions

Provides extension methods for IHostApplicationBuilder to configure services, logging, app configuration, and host options in a manner similar to Host.CreateDefaultBuilder These extensions offer a fluent interface for configuring the application host, enabling the customization of service dependencies, configuration sources, logging, and host behaviors.

Inheritance
object
ConversionsHostApplicationBuilderExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Coree.NETStandard.Extensions.Conversions.HostApplicationBuilder
Assembly: Coree.NETStandard.dll
Syntax
public static class ConversionsHostApplicationBuilderExtensions

Methods

| Edit this page View Source

ConfigureAppConfiguration(IHostApplicationBuilder, Action<IConfigurationBuilder>)

Configures application configuration for the host builder using a delegate.

Declaration
public static IHostApplicationBuilder ConfigureAppConfiguration(this IHostApplicationBuilder hostBuilder, Action<IConfigurationBuilder> configureDelegate)
Parameters
Type Name Description
IHostApplicationBuilder hostBuilder

The application host builder.

Action<IConfigurationBuilder> configureDelegate

The delegate to configure the application configuration with the configuration builder.

Returns
Type Description
IHostApplicationBuilder

The IHostApplicationBuilder for chaining.

| Edit this page View Source

ConfigureAppConfiguration(IHostApplicationBuilder, Action<IHostApplicationBuilder, IConfigurationBuilder>)

Configures application configuration for the host builder using a delegate.

Declaration
public static IHostApplicationBuilder ConfigureAppConfiguration(this IHostApplicationBuilder hostBuilder, Action<IHostApplicationBuilder, IConfigurationBuilder> configureDelegate)
Parameters
Type Name Description
IHostApplicationBuilder hostBuilder

The application host builder.

Action<IHostApplicationBuilder, IConfigurationBuilder> configureDelegate

The delegate to configure the application configuration with the host builder and configuration builder.

Returns
Type Description
IHostApplicationBuilder

The IHostApplicationBuilder for chaining.

| Edit this page View Source

ConfigureHostOptions(IHostApplicationBuilder, Action<HostOptions>)

Configures host options for the application host builder using a delegate.

Declaration
public static IHostApplicationBuilder ConfigureHostOptions(this IHostApplicationBuilder hostBuilder, Action<HostOptions> configureOptions)
Parameters
Type Name Description
IHostApplicationBuilder hostBuilder

The application host builder.

Action<HostOptions> configureOptions

The delegate to configure host options.

Returns
Type Description
IHostApplicationBuilder

The IHostApplicationBuilder for chaining.

| Edit this page View Source

ConfigureHostOptions(IHostApplicationBuilder, Action<IHostApplicationBuilder, HostOptions>)

Configures host options for the application host builder using a delegate.

Declaration
public static IHostApplicationBuilder ConfigureHostOptions(this IHostApplicationBuilder hostBuilder, Action<IHostApplicationBuilder, HostOptions> configureOptions)
Parameters
Type Name Description
IHostApplicationBuilder hostBuilder

The application host builder.

Action<IHostApplicationBuilder, HostOptions> configureOptions

The delegate to configure host options with the host builder and host options.

Returns
Type Description
IHostApplicationBuilder

The IHostApplicationBuilder for chaining.

| Edit this page View Source

ConfigureLogging(IHostApplicationBuilder, Action<IHostApplicationBuilder, ILoggingBuilder>)

Configures logging for the application host builder using a delegate.

Declaration
public static IHostApplicationBuilder ConfigureLogging(this IHostApplicationBuilder hostBuilder, Action<IHostApplicationBuilder, ILoggingBuilder> configureDelegate)
Parameters
Type Name Description
IHostApplicationBuilder hostBuilder

The application host builder.

Action<IHostApplicationBuilder, ILoggingBuilder> configureDelegate

The delegate to configure logging with the host builder and logging builder.

Returns
Type Description
IHostApplicationBuilder

The IHostApplicationBuilder for chaining.

| Edit this page View Source

ConfigureLogging(IHostApplicationBuilder, Action<ILoggingBuilder>)

Configures logging for the application host builder using a delegate.

Declaration
public static IHostApplicationBuilder ConfigureLogging(this IHostApplicationBuilder hostBuilder, Action<ILoggingBuilder> configureDelegate)
Parameters
Type Name Description
IHostApplicationBuilder hostBuilder

The application host builder.

Action<ILoggingBuilder> configureDelegate

The delegate to configure logging with the logging builder.

Returns
Type Description
IHostApplicationBuilder

The IHostApplicationBuilder for chaining.

| Edit this page View Source

ConfigureServices(IHostApplicationBuilder, Action<IServiceCollection>)

Configures services for the application host builder using a delegate.

Declaration
public static IHostApplicationBuilder ConfigureServices(this IHostApplicationBuilder hostBuilder, Action<IServiceCollection> configureDelegate)
Parameters
Type Name Description
IHostApplicationBuilder hostBuilder

The application host builder.

Action<IServiceCollection> configureDelegate

The delegate to configure services with the service collection.

Returns
Type Description
IHostApplicationBuilder

The IHostApplicationBuilder for chaining.

| Edit this page View Source

ConfigureServices(IHostApplicationBuilder, Action<IHostApplicationBuilder, IServiceCollection>)

Configures services for the application host builder using a delegate.

Declaration
public static IHostApplicationBuilder ConfigureServices(this IHostApplicationBuilder hostBuilder, Action<IHostApplicationBuilder, IServiceCollection> configureDelegate)
Parameters
Type Name Description
IHostApplicationBuilder hostBuilder

The application host builder.

Action<IHostApplicationBuilder, IServiceCollection> configureDelegate

The delegate to configure services with the host builder and service collection.

Returns
Type Description
IHostApplicationBuilder

The IHostApplicationBuilder for chaining.

| Edit this page View Source

UseConsoleLifetime(IHostApplicationBuilder)

Configures the application host builder to use a console lifetime.

Declaration
public static IHostApplicationBuilder UseConsoleLifetime(this IHostApplicationBuilder hostBuilder)
Parameters
Type Name Description
IHostApplicationBuilder hostBuilder

The application host builder.

Returns
Type Description
IHostApplicationBuilder

The IHostApplicationBuilder for chaining.

  • Edit this page
  • View Source
In this article
Back to top