# GatewayOptions.DEFAULT_PREFERED_GATEWAY_INDEX

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.configuration.gatewayoptions/) | [Fields](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.configuration.gatewayoptions/fields/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Configuration/Options/GatewayOptions.cs)

```csharp
public const int DEFAULT_PREFERED_GATEWAY_INDEX
```

Default preferred gateway index,. Value -1 means prefer no gateway
