Class AllocationRequest
A request to create an allocation.
Inherited Members
Namespace: Unity.Services.Apis.Relay
Assembly: solution.dll
Syntax
[Preserve]
public class AllocationRequest
Constructors
AllocationRequest(int, string)
Initializes a new instance of the AllocationRequest class.
Declaration
[Preserve]
public AllocationRequest(int maxConnections = 0, 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. (required). |
| 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
[Preserve]
public int MaxConnections { get; set; }
Property Value
| Type | Description |
|---|---|
| int | The maximum number of peer connections allowed for this allocation. The Allocations service also uses this number to find a Relay with sufficient capacity. |
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
[Preserve]
public string Region { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The region in which to create this allocation. Get a list of supported values from the |