public Task <APIGatewayProxyResponse> Handler(APIGatewayProxyRequest request, ILambdaContext context)
        {
            Logger.Debug(request.ToMcmaJson().ToString());
            Logger.Debug(context.ToMcmaJson().ToString());

            return(Controller.HandleRequestAsync(request, context));
        }
        public async Task Handler(JobProcessorWorkerRequest @event, ILambdaContext context)
        {
            Logger.Debug(@event.ToMcmaJson().ToString());
            Logger.Debug(context.ToMcmaJson().ToString());

            await McmaWorker.DoWorkAsync <JobProcessorWorker, JobProcessorWorkerRequest>(@event.Action, @event);
        }
        public async Task Handler(TransformServiceWorkerRequest @event, ILambdaContext context)
        {
            Logger.Debug(@event.ToMcmaJson().ToString());
            Logger.Debug(context.ToMcmaJson().ToString());

            await McmaWorker.DoWorkAsync <TransformServiceWorker, TransformServiceWorkerRequest>(@event.Action, @event);
        }
Exemple #4
0
        public async Task Handler(WorkerRequest @event, ILambdaContext context)
        {
            Logger.Debug(@event.ToMcmaJson().ToString());
            Logger.Debug(context.ToMcmaJson().ToString());

            await Worker.DoWorkAsync(@event);
        }