public void Initialize(LocatorFlow locator) { commandLineArgs.TryGetCommandLineValue(RuntimeConfigNames.LocatorHost, ref locator.LocatorHost); commandLineArgs.TryGetCommandLineValue(RuntimeConfigNames.PlayerIdentityToken, ref locator.PlayerIdentityToken); commandLineArgs.TryGetCommandLineValue(RuntimeConfigNames.LoginToken, ref locator.LoginToken); if (!string.IsNullOrEmpty(locator.PlayerIdentityToken) && !string.IsNullOrEmpty(locator.LoginToken)) { locator.UseDevAuthFlow = false; } }
public void Initialize(LocatorFlow locator) { commandLineArgs.TryGetCommandLineValue(RuntimeConfigNames.LocatorHost, ref locator.LocatorHost); commandLineArgs.TryGetCommandLineValue(RuntimeConfigNames.ProjectName, ref locator.LocatorParameters.ProjectName); commandLineArgs.TryGetCommandLineValue(RuntimeConfigNames.LoginToken, ref locator.LocatorParameters.LoginToken.Token); commandLineArgs.TryGetCommandLineValue(RuntimeConfigNames.SteamDeploymentTag, ref locator.LocatorParameters.Steam.DeploymentTag); commandLineArgs.TryGetCommandLineValue(RuntimeConfigNames.SteamTicket, ref locator.LocatorParameters.Steam.Ticket); if (!string.IsNullOrEmpty(locator.LocatorParameters.LoginToken.Token)) { locator.LocatorParameters.CredentialsType = LocatorCredentialsType.LoginToken; } else if (!string.IsNullOrEmpty(locator.LocatorParameters.Steam.Ticket) && !string.IsNullOrEmpty(locator.LocatorParameters.Steam.DeploymentTag)) { locator.LocatorParameters.CredentialsType = LocatorCredentialsType.Steam; } }