docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AllocationRequest

    A request to create an allocation.

    Inheritance
    object
    AllocationRequest
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Services.Relay.Models
    Assembly: Unity.Services.Multiplayer.dll
    Syntax
    [Preserve]
    [DataContract(Name = "AllocationRequest")]
    public class AllocationRequest

    Constructors

    AllocationRequest(int, string)

    A request to create an allocation.

    Declaration
    [Preserve]
    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 /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]
    [DataMember(Name = "maxConnections", IsRequired = true, EmitDefaultValue = true)]
    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
    [Preserve]
    [DataMember(Name = "region", EmitDefaultValue = false)]
    public string Region { get; }
    Property Value
    Type Description
    string
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)