# TestSiloSpecificOptions Methods

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

## Create(TestCluster, TestClusterOptions, int, bool) {#create-orleans-testinghost-testcluster-orleans-testinghost-testclusteroptions-in-89245546}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.testsilospecificoptions/methods/create-orleans-testinghost-testcluster-orleans-testinghost-testclusteroptions-in-89245546/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.TestingHost/TestClusterOptions.cs#L196-L214)

```csharp
public static TestSiloSpecificOptions Create(TestCluster testCluster, TestClusterOptions testClusterOptions, int instanceNumber, bool assignNewPort = false)
```

Creates an instance of the [TestSiloSpecificOptions](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.testsilospecificoptions/) class.

### Parameters

- `testCluster` (`TestCluster`): The test cluster.
- `testClusterOptions` (`TestClusterOptions`): The test cluster options.
- `instanceNumber` (`int`): The instance number.
- `assignNewPort` (`bool`): if set to `true`, assign a new port for the silo.

### Returns

The options.

## ToDictionary {#todictionary-3dc4a155}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.testsilospecificoptions/methods/todictionary-3dc4a155/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.TestingHost/TestClusterOptions.cs#L223-L236)

```csharp
public Dictionary<string, string> ToDictionary()
```

Converts these options into a dictionary.

### Returns

The options dictionary.
