Method StopAsync
StopAsync()
Asynchronously shuts down the LocalServer.
Declaration
public Task StopAsync()
Returns
Type | Description |
---|---|
System. |
A task that represents the asynchronous stop operation. |
Remarks
If you would like to execute some code in response to the LocalServer shutting down the
Status
Exceptions
Type | Condition |
---|---|
System. |
Server can only be stopped when in the started state. |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Windows | 100.13 - 200.6 |
.NET Framework | 100.0 - 200.6 |