public async Task OrderMatchAsync(string userKey, MatchOrderItem[] matchOrderItems) { _sub.Dispose(); var delay = _defaultDelay; await Task.Delay(TimeSpan.FromSeconds(delay)); _sub = Observable.Timer(TimeSpan.FromSeconds(5)) .ObserveOnDispatcher() .Subscribe(_ => { _callback.SuggestServer(new GameServerSuggestion { GameEnvironment = GameEnvironment.SMStorm, ServerLogin = "******", TitleUId = "title_uid", ServerName = "Server Name", Script = "Siege", PlayersCount = 6, UsersCount = 1 }); }); }
public async Task OrderMatchAsync(string userKey, MatchOrderItem[] matchOrderItems) { CreateClient(); await _client.OrderMatchAsync(userKey, matchOrderItems); }