# SiloHandle.StopSiloAsync(bool, CancellationToken)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.silohandle/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.silohandle/methods/)

[Source](https://github.com/dotnet/orleans/blob/1644940b035c7bdf215a4fd7135757c06bcfe9ec/src/Orleans.TestingHost/SiloHandle.cs#L41-L43)

```csharp
public virtual Task StopSiloAsync(bool stopGracefully, CancellationToken cancellationToken)
```

Stop the remote silo.

### Parameters

- `stopGracefully` (`bool`): Specifies whether the silo should be stopped gracefully or abruptly.
- `cancellationToken` (`CancellationToken`): Specifies the cancellation token for graceful shutdown or for canceling the wait for abrupt shutdown.
