Class EdgegapAppVersionRequest

Namespace
Unity.Multiplayer.Core

What to tell Edgegap about the app version to deploy (EnsureAppVersionAsync(EdgegapAppVersionRequest, CancellationToken)).

public sealed class EdgegapAppVersionRequest
Inheritance
EdgegapAppVersionRequest
Inherited Members

Constructors

EdgegapAppVersionRequest(string, string, string, IReadOnlyList<EdgegapPortSpec>, IReadOnlyDictionary<string, string>)

Describes an app version.

public EdgegapAppVersionRequest(string appName, string versionName, string imageReference, IReadOnlyList<EdgegapPortSpec> ports, IReadOnlyDictionary<string, string> environmentVariables)

Parameters

appName string
versionName string
imageReference string
ports IReadOnlyList<EdgegapPortSpec>
environmentVariables IReadOnlyDictionary<string, string>

Properties

AppName

The Edgegap application name (created once per game, out of band, in the Edgegap dashboard).

public string AppName { get; }

Property Value

string

EnvironmentVariables

Container environment variables (rendezvous URL/secret and the like), the same shape every other hosting profile uses.

public IReadOnlyDictionary<string, string> EnvironmentVariables { get; }

Property Value

IReadOnlyDictionary<string, string>

ImageReference

The GHCR image reference this version runs (ghcr.io/org/game:tag), the same one mp-host just pushed.

public string ImageReference { get; }

Property Value

string

Ports

The ports the container exposes.

public IReadOnlyList<EdgegapPortSpec> Ports { get; }

Property Value

IReadOnlyList<EdgegapPortSpec>

VersionName

The version name Edgegap tracks this build under; the mp-host image tag is a natural choice.

public string VersionName { get; }

Property Value

string