# InProcessSiloHandle.CreateAsync(string, IConfiguration, Action&lt;IHostBuilder&gt;, CancellationToken)

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

[Source](https://github.com/dotnet/orleans/blob/1644940b035c7bdf215a4fd7135757c06bcfe9ec/src/Orleans.TestingHost/InProcessSiloHandle.cs)

```csharp
public static Task<InProcessSiloHandle> CreateAsync(string siloName, IConfiguration configuration, Action<IHostBuilder>? postConfigureHostBuilder, CancellationToken cancellationToken)
```

Create a silo handle.

### Parameters

- `siloName` (`string`): Name of the silo.
- `configuration` (`IConfiguration`): The configuration.
- `postConfigureHostBuilder` (`Action<IHostBuilder>`): An optional delegate which is invoked just prior to building the host builder.
- `cancellationToken` (`CancellationToken`): The token used to cancel silo startup.

### Returns

The silo handle.
