Beispiel #1
0
 public virtual Task <VersionLoginClient> WithAutomaticVersionAsync()
 {
     return(ConnectionUtils.GetVersionAsync(this.Client)
            .Then(task => this.WithVersion(task.Result))
            .ToSafeTask());
 }
 public static Task <T> ArmorGamesLoginAsync <T>(this IPlayerIOGame <T> playerIOGame, string userId, string token)
 {
     return(ConnectionUtils.ArmorGamesRoomLoginAsync(playerIOGame.GameId, userId, token)
            .Then(task => playerIOGame.ConnectionManager.WithClient(task.Result))
            .ToSafeTask());
 }
Beispiel #3
0
 internal LoginClient([NotNull] IConnectionManager connectionManager, [NotNull] Client client)
     : this(connectionManager, client, ConnectionUtils.GetConnectionArgsAsync(client))
 {
 }
 public static Task <T> GuestLoginAsync <T>(this IPlayerIOGame <T> playerIOGame)
 {
     return(ConnectionUtils.GuestLoginAsync(playerIOGame.GameId)
            .Then(task => playerIOGame.ConnectionManager.WithClient(task.Result))
            .ToSafeTask());
 }