Example #1
0
 public async Task Test2() {
     var s = new SteamServiceSessionSignalR();
     await s.Start((uint) SteamGameIds.Arma2Oa, new Uri("http://127.0.0.1:55556")).ConfigureAwait(false);
     var a2 = "arma2arrowpc";
     var a3 = "arma3";
     var filter = ServerFilterBuilder.Build().FilterByAppId((uint) SteamGameIds.Arma3).Value;
     await
         s.GetServers<ArmaServerInfoModel>(
                 new GetServers {Filter = filter, IncludeDetails = true},
                 list => {
                     Console.WriteLine(string.Join(",", list.Select(x => x.QueryEndPoint)));
                 }, CancellationToken.None)
             .ConfigureAwait(false);
 }
Example #2
0
        public async Task Test2()
        {
            var s = new SteamServiceSessionSignalR();
            await s.Start((uint)SteamGameIds.Arma2Oa, new Uri("http://127.0.0.1:55556")).ConfigureAwait(false);

            var a2     = "arma2arrowpc";
            var a3     = "arma3";
            var filter = ServerFilterBuilder.Build().FilterByAppId((uint)SteamGameIds.Arma3).Value;
            await
            s.GetServers <ArmaServerInfoModel>(
                new GetServers { Filter = filter, IncludeDetails = true },
                list => {
                Console.WriteLine(string.Join(",", list.Select(x => x.QueryEndPoint)));
            }, CancellationToken.None)
            .ConfigureAwait(false);
        }