# ITestClusterPortAllocator.AllocateConsecutivePortPairs(int)

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

```csharp
public abstract (int, int) ITestClusterPortAllocator.AllocateConsecutivePortPairs(int numPorts)
```

Allocates consecutive port pairs.

### Parameters

- `numPorts` (`int`): The number of consecutive ports to allocate.

### Returns

Base ports for silo and gateway endpoints.
