Example #1
0
        private static async Task <IList <ArmaServerInfo> > PerformAction(ISteamApi steamApi, ServerFilterWrap filter)
        {
            using (var sb = await SteamActions.CreateServerBrowser(steamApi).ConfigureAwait(false)) {
                using (var cts = new CancellationTokenSource()) {
                    var obs =
                        await
                        sb.GetServersInclDetails(cts.Token, filter, true)
                        .ConfigureAwait(false);

                    var s = await obs.Take(10).ToList();

                    cts.Cancel();
                    return(s);
                }
            }
        }
Example #2
0
 protected Task <ServerBrowser> CreateArma3ServerBrowser() => SteamActions.CreateServerBrowser(_steamApi);