Beispiel #1
0
        public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems)
        {
            AmazonGameLiftConfig config = new AmazonGameLiftConfig();

            config.RegionEndpoint = region;
            ConfigureClient(config);
            AmazonGameLiftClient client = new AmazonGameLiftClient(creds, config);

            DescribeMatchmakingConfigurationsResponse resp = new DescribeMatchmakingConfigurationsResponse();

            do
            {
                DescribeMatchmakingConfigurationsRequest req = new DescribeMatchmakingConfigurationsRequest
                {
                    NextToken = resp.NextToken
                    ,
                    Limit = maxItems
                };

                resp = client.DescribeMatchmakingConfigurations(req);
                CheckError(resp.HttpStatusCode, "200");

                foreach (var obj in resp.Configurations)
                {
                    AddObject(obj);
                }
            }while (!string.IsNullOrEmpty(resp.NextToken));
        }
 public void DescribeMatchmakingConfigurationsAsync(DescribeMatchmakingConfigurationsRequest request, AmazonServiceCallback <DescribeMatchmakingConfigurationsRequest, DescribeMatchmakingConfigurationsResponse> callback, AsyncOptions options = null)
 {
     throw new System.NotImplementedException();
 }