Exemplo n.º 1
0
        public async Task InvokeAsync()
        {
            XRayTracing.Configure();

            try
            {
                await HandleAsync();
            }
            catch (Exception)
            {
                throw;
            }
        }
Exemplo n.º 2
0
        public async Task InvokeAsync(SQSEvent @event)
        {
            XRayTracing.Configure();

            try
            {
                var sqsMessage = @event.Records.Single();

                var deserializedMessage = JsonSerializer.Deserialize <T>(sqsMessage.Body);

                await HandleAsync(deserializedMessage);
            }
            catch (Exception)
            {
                throw;
            }
        }