Ejemplo n.º 1
0
 public virtual Task <VersionLoginClient> WithAutomaticVersionAsync()
 {
     return(ConnectionUtils.GetVersionAsync(this.Client)
            .Then(task => this.WithVersion(task.Result))
            .ToSafeTask());
 }
Ejemplo n.º 2
0
 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());
 }
Ejemplo n.º 3
0
 internal LoginClient([NotNull] IConnectionManager connectionManager, [NotNull] Client client)
     : this(connectionManager, client, ConnectionUtils.GetConnectionArgsAsync(client))
 {
 }
Ejemplo n.º 4
0
 public static Task <T> GuestLoginAsync <T>(this IPlayerIOGame <T> playerIOGame)
 {
     return(ConnectionUtils.GuestLoginAsync(playerIOGame.GameId)
            .Then(task => playerIOGame.ConnectionManager.WithClient(task.Result))
            .ToSafeTask());
 }