IHostedService Interface
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.
Defines methods for objects that are managed by the host.
public interface class IHostedService
C#
public interface IHostedService
type IHostedService = interface
Public Interface IHostedService
- Derived
Start |
Triggered when the application host is ready to start the service. |
Stop |
Triggered when the application host is performing a graceful shutdown. |
Start |
Starts and immediately stops the service. |
Produkt | Versionen |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Standard | 2.0 (package-provided), 2.1 (package-provided) |
Zusammenarbeit auf GitHub
Die Quelle für diesen Inhalt finden Sie auf GitHub, wo Sie auch Issues und Pull Requests erstellen und überprüfen können. Weitere Informationen finden Sie in unserem Leitfaden für Mitwirkende.
Feedback zu .NET
.NET ist ein Open Source-Projekt. Wählen Sie einen Link aus, um Feedback zu geben: