示例#1
0
        public GenericOutcome StopMatchmaking(Aws.GameLift.Server.Model.StopMatchBackfillRequest request)
        {
            var translation = BackfillDataMapper.CreateBufferedStopMatchmakingRequest(request);

            var future = new TaskCompletionSource <GenericOutcome>();

            var ackFunction = CreateAckFunction(future);

            return(EmitEvent(translation, ackFunction, future, STOP_MATCH_BACKFILL_ERROR));
        }
        public static Protobuf.StopMatchmakingRequest CreateBufferedStopMatchmakingRequest(
            StopMatchBackfillRequest request)
        {
            Protobuf.StopMatchmakingRequest translated = new Protobuf.StopMatchmakingRequest();

            translated.TicketId       = request.TicketId;
            translated.GameSessionArn = request.GameSessionArn;
            translated.MatchmakingConfigurationArn = request.MatchmakingConfigurationArn;

            return(translated);
        }
示例#3
0
        CreateBufferedStopMatchmakingRequest(StopMatchBackfillRequest request)
        {
            Com.Amazon.Whitewater.Auxproxy.Pbuffer.StopMatchmakingRequest translated =
                new Com.Amazon.Whitewater.Auxproxy.Pbuffer.StopMatchmakingRequest();

            translated.TicketId       = request.TicketId;
            translated.GameSessionArn = request.GameSessionArn;
            translated.MatchmakingConfigurationArn = request.MatchmakingConfigurationArn;

            return(translated);
        }