Class AllocationRequest
A request to create an allocation.
Inheritance
object
AllocationRequest
Namespace: Unity.Services.Relay.Models
Assembly: solution.dll
Syntax
public class AllocationRequest
Constructors
AllocationRequest(int, string)
A request to create an allocation.
Declaration
public AllocationRequest(int maxConnections, string region = null)
Parameters
| Type | Name | Description |
|---|---|---|
| int | maxConnections | The maximum number of peer connections allowed for this allocation. The Allocations service also uses this number to find a Relay with sufficient capacity. |
| string | region | The region in which to create this allocation. Get a list of supported values from the |
Properties
MaxConnections
The maximum number of peer connections allowed for this allocation. The Allocations service also uses this number to find a Relay with sufficient capacity.
Declaration
public int MaxConnections { get; }
Property Value
| Type | Description |
|---|---|
| int |
Region
The region in which to create this allocation. Get a list of supported values from the /regions endpoint or omit this parameter to use the default region.
Declaration
public string Region { get; }
Property Value
| Type | Description |
|---|---|
| string |