KestrunHostManager class
Provides management functionality for KestrunHost instances, including creation, retrieval, starting, stopping, and destruction.
public static class KestrunHostManager
Public Members
| name | description |
|---|---|
| static Default { get; } | Gets the default KestrunHost instance, if one has been set. |
| static InstanceNames { get; } | Gets the collection of names for all KestrunHost instances. |
| static KestrunRoot { get; set; } | Gets or sets the root path for Kestrun operations. |
| static Contains(…) | Determines whether a KestrunHost instance with the specified name exists. |
| static Create(…) | Creates a new KestrunHost instance using the provided factory function. (3 methods) |
| static Destroy(…) | Destroys the specified KestrunHost instance and disposes its resources. |
| static DestroyAll() | Destroys all KestrunHost instances and disposes their resources. |
| static Get(…) | Retrieves a KestrunHost instance by its name. |
| static IsRunning(…) | Determines whether the specified KestrunHost instance is currently running. |
| static SetDefault(…) | Sets the specified KestrunHost instance as the default. |
| static StartAsync(…) | Starts the specified KestrunHost instance asynchronously. |
| static Stop(…) | Stops the specified KestrunHost instance synchronously. |
| static StopAllAsync(…) | Stops all KestrunHost instances asynchronously. |
| static StopAsync(…) | Stops the specified KestrunHost instance asynchronously. |
| static TryGet(…) | Attempts to retrieve a KestrunHost instance by its name. |
See Also
- namespace Kestrun