Пример #1
0
        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);
        }
Пример #3
0
        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;
        }