IHostLifetime Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Tracks host lifetime.
public interface class IHostLifetime
public interface IHostLifetime
type IHostLifetime = interface
Public Interface IHostLifetime
- Derived
Methods
StopAsync(CancellationToken) |
Called from StopAsync(CancellationToken) to indicate that the host is stopping and it's time to shut down. |
WaitForStartAsync(CancellationToken) |
Called at the start of StartAsync(CancellationToken) which will wait until it's complete before continuing. This can be used to delay startup until signaled by an external event. |
Applies to
Співпраця з нами на GitHub
Джерело цього вмісту можна знайти на GitHub, де також можна створювати й переглядати запитання та запити на внесення змін. Докладні відомості наведено в нашому посібнику для співавторів.