Class SelfHttpWarmupOptions
Configures optional HTTP requests sent to the application after startup.
Inherited Members
Namespace: Eigenverft.WebLib.Infrastructure.Hosting.SelfHttpWarmup
Assembly: Eigenverft.WebLib.Infrastructure.dll
Syntax
public sealed class SelfHttpWarmupOptions
Fields
| Edit this page View SourceSectionName
Configuration section used by AddSelfHttpWarmup().
Declaration
public const string SectionName = "SelfHttpWarmup"
Field Value
| Type | Description |
|---|---|
| string |
Properties
| Edit this page View SourceEnabled
Gets or sets a value indicating whether self-HTTP warmup is enabled.
Declaration
public bool Enabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
The feature is opt-in and is disabled by default when only configuration binding is registered.
URL-based and code-based AddSelfHttpWarmup(...) overloads enable it automatically.
InitialDelay
Gets or sets an optional delay applied after application startup before the first request.
Declaration
public TimeSpan InitialDelay { get; set; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
RequestTimeout
Gets or sets the maximum duration of each warmup request.
Declaration
public TimeSpan RequestTimeout { get; set; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
TargetUrls
Gets or sets the absolute HTTP or HTTPS URLs requested once during startup warmup.
Declaration
public string[] TargetUrls { get; set; }
Property Value
| Type | Description |
|---|---|
| string[] |