public LambdaPayload FunctionHandler(LambdaPayload input, ILambdaContext context)
        {
            var input_payload = input.Payload;
            var pdf           = ConvertToPdf(input_payload);
            var url           = Upload2S3(pdf);

            return(new LambdaPayload {
                Payload = url
            });
        }
示例#2
0
        public async Task <LambdaPayload> FunctionHandler(LambdaPayload input, ILambdaContext context)
        {
            System.Environment.SetEnvironmentVariable("FONTCONFIG_PATH", "/opt/lib");
            var payload = await Task.Run(() => {
                return(new LambdaPayload
                {
                    Payload = ConvertToPdf(input.Payload)
                });
            });

            return(payload);
        }
        public LambdaPayload FunctionHandler(LambdaPayload input, ILambdaContext context)
        {
            var input_payload = input.Payload;

            var payload = new LambdaPayload();

            payload.Payload = ConvertToPdf(input_payload);

            return(payload);

            // return input;
        }