# SiloHandle Methods

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

## Dispose {#dispose-05b823b9}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.silohandle/methods/dispose-05b823b9/)

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

```csharp
public void Dispose()
```

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

## DisposeAsync {#disposeasync-e129dc8d}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.silohandle/methods/disposeasync-e129dc8d/)

```csharp
public abstract ValueTask DisposeAsync()
```

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.

### Returns

A task that represents the asynchronous dispose operation.

## StopSiloAsync(CancellationToken) {#stopsiloasync-system-threading-cancellationtoken-57e6d1a9}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.silohandle/methods/stopsiloasync-system-threading-cancellationtoken-57e6d1a9/)

```csharp
public abstract Task StopSiloAsync(CancellationToken ct)
```

Stop the remote silo. This method cannot be use with AppDomain

### Parameters

- `ct` (`CancellationToken`): Specifies the cancellation token to use for the shutdown sequence

## StopSiloAsync(bool) {#stopsiloasync-bool-d67c2bf6}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.silohandle/methods/stopsiloasync-bool-d67c2bf6/)

```csharp
public abstract Task StopSiloAsync(bool stopGracefully)
```

Stop the remote silo

### Parameters

- `stopGracefully` (`bool`): Specifies whether the silo should be stopped gracefully or abruptly.

## ToString {#tostring-efc578dd}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.silohandle/methods/tostring-efc578dd/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.TestingHost/SiloHandle.cs#L72)

```csharp
public override string ToString()
```

Returns a string that represents the current object.

### Returns

A string that represents the current object.
