HostingExtensions class

Provides extension methods for hosting Kestrun servers.

public static class HostingExtensions

Public Members

name description
static RunUntilShutdownAsync(…) Starts server, blocks until the process receives Ctrl-C / SIGTERM (or stopToken is cancelled), then calls StopAsync and disposes the host.

See Also