dotnet / dotnet/dotnet-api-docs

Has ServiceBase.Run blocking behavior when called in service context?

Open
#10,700 0 comments 0 reactions 1 assignee Claimed by @carlossanlop View on GitHub
area-System.ServiceProcess Pri3 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

### Type of issue

Typo

### Description

You should describe how `ServiceBase.Run` behaves exactly. As far as I've understood the `main` method is also called when a service is started. If so `ServiceBase.Run` would be called. Will it block until the service is stopped?

### Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.serviceprocess.servicebase.run?view=net-8.0-pp

### Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.ServiceProcess/ServiceBase.xml

### Document Version Independent Id

0befd7d9-fde6-b689-1f61-eaeaa3c8f170

### Article author

@dotnet-bot

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.