KestrunHostRuntime record
Represents runtime information for a Kestrun host.
public record KestrunHostRuntime
Public Members
| name | description |
|---|---|
| KestrunHostRuntime() | The default constructor. |
| FormOptions { get; } | Gets the form parsing options for Kestrun hosts. |
| FormPartRules { get; } | Gets the form part rules for Kestrun hosts. |
| StartTime { get; } | Gets the timestamp when the Kestrun host was started. |
| StopTime { get; } | Gets the timestamp when the Kestrun host was stopped. |
| Uptime { get; } | Gets the uptime duration of the Kestrun host. While running (no StopTime yet), this returns DateTime.UtcNow - StartTime. After stopping, it returns StopTime - StartTime. If StartTime is not set, returns null. |
See Also
- namespace Kestrun.Hosting
- KestrunHostRuntime.cs