internal void InitJoin() { Scheduler.Of(this._botBitsClient).InitScheduler(false); if (this._argsAsync == null) { this._argsAsync = LoginUtils.GetPlayerDataAsync(this.Database); } }
public static Task <T> WithArmorGamesAsync <T>(this IPlayerIOGame <T> playerIOGame, string userId, string token) { return(LoginUtils.ArmorGamesRoomLoginAsync(playerIOGame.GameId, userId, token) .Then(task => playerIOGame.Login.WithClient(task.Result)) .ToSafeTask()); }
public static Task <T> AsGuestAsync <T>(this IPlayerIOGame <T> playerIOGame) { return(LoginUtils.GuestLoginAsync(playerIOGame.GameId) .Then(task => playerIOGame.Login.WithClient(task.Result)) .ToSafeTask()); }
public virtual Task <VersionLoginClient> WithAutomaticVersionAsync() { return(LoginUtils.GetVersionAsync(this.Client) .Then(task => this.WithVersion(task.Result)) .ToSafeTask()); }
internal LoginClient([NotNull] IConnectionManager connectionManager, [NotNull] Client client) : this(connectionManager, client, LoginUtils.GetConnectionArgsAsync(client)) { }