KestrunOptions class
Simple options class for configuring Kestrel server settings.
public class KestrunOptions
Public Members
name | description |
---|---|
KestrunOptions() | Initializes a new instance of the KestrunOptions class with default values. |
ApplicationName { get; set; } | Application name (optional, for diagnostics). |
Listeners { get; } | List of configured listeners for the Kestrel server. Each listener can be configured with its own IP address, port, protocols, and other options. |
MaxRunspaces { get; set; } | Gets or sets the maximum number of runspaces to use for script execution. |
MaxSchedulerRunspaces { get; set; } | Gets or sets the maximum number of runspaces to use for the scheduler service. Defaults to 8. |
MinRunspaces { get; set; } | Gets or sets the minimum number of runspaces to use for script execution. Defaults to 1. |
ServerLimits { get; } | Provides access to request limit options. Use a hashtable or a KestrelServerLimits instance. |
ServerOptions { get; set; } | Gets or sets the Kestrel server options. |
Remarks
This class provides a strongly-typed alternative to using a hashtable for Kestrel server options.
See Also
- namespace Kestrun.Hosting.Options