NoopHostLifetime class
Minimal IHostLifetime that performs no blocking operations. Useful for scenarios like testing where the host lifecycle is externally managed.
public class NoopHostLifetime : IHostLifetime
Public Members
name | description |
---|---|
NoopHostLifetime() | The default constructor. |
StopAsync(…) | Stops the host. This implementation does nothing and completes immediately. |
WaitForStartAsync(…) | Waits for the host to start. This implementation does nothing and completes immediately. |
See Also
- namespace Kestrun.Hosting