Method StopAsync
StopAsync()
Asynchronously stops this local service instance, and returns a Task object.
Declaration
public Task StopAsync()
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A task that represents the asynchronous stop operation. |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | Service can only be stopped when in the started state. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Windows | 100.13 - 200.8 |
| .NET Framework | 100.0 - 200.8 |