v1.0.0
Latest
2022.3+

Class AllocationRequest

A request to create an allocation.

Inheritance
System.Object
AllocationRequest
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Unity.Services.Relay.Models
Syntax
public class AllocationRequest

Constructors

AllocationRequest(Int32, String)

A request to create an allocation.

Declaration
public AllocationRequest(int maxConnections, string region = null)
Parameters
TypeNameDescription
System.Int32maxConnections

The maximum number of peer connections allowed for this allocation. The Allocations service also uses this number to find a Relay with sufficient capacity.

System.Stringregion

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.

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
TypeDescription
System.Int32

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
TypeDescription
System.String