docs.unity3d.com
    Show / Hide Table of Contents

    Class AllocationRequest

    A request to create an allocation.

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

    Constructors

    AllocationRequest(Int32, String)

    A request to create an allocation.

    Declaration
    [Preserve]
    public AllocationRequest(int maxConnections, string region = null)
    Parameters
    Type Name Description
    Int32 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 /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
    [Preserve]
    public int MaxConnections { get; }
    Property Value
    Type Description
    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
    [Preserve]
    public string Region { get; }
    Property Value
    Type Description
    String
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023