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).
Health { get; set; } Gets or sets the health endpoint configuration.
HttpsConnectionAdapter { get; set; } Gets the HTTPS connection adapter options.
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.
ListenUnixSockets { get; } Optional path to a Unix domain socket for Kestrel to listen on.
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.
NamedPipeNames { get; } Optional name of a Named Pipe for Kestrel to listen on.
NamedPipeOptions { get; set; } Gets or sets the Named Pipe transport options.
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