Beispiel #1
0
 public static Task <APIGatewayProxyResponse> Api(APIGatewayProxyRequest request, ILambdaContext context)
 {
     return(LambdaApiGatewayProxy.Handle <Mcma.Services.Jobs.JobProcessor.JobProcessor>(
                request,
                context,
                builder =>
                builder.Services
                .AddDynamoDbMcmaRepository()
                .AddS3FileStorage()));
 }
 /// <summary>
 /// A simple function that takes a string and does a ToUpper
 /// </summary>
 /// <param name="input"></param>
 /// <param name="context"></param>
 /// <returns></returns>
 public Task <APIGatewayProxyResponse> Api(APIGatewayProxyRequest input, ILambdaContext context)
 {
     return(LambdaApiGatewayProxy.Handle <Mcma.Services.ServiceRegistry.ServiceRegistry>(
                input,
                context,
                builder =>
                builder.Services
                .AddDynamoDbMcmaRepository()
                .AddS3FileStorage()));
 }
 /// <summary>
 /// A Lambda function to respond to API calls to create MediaInfo jobs
 /// </summary>
 /// <param name="request"></param>
 /// <param name="context"></param>
 /// <returns>The list of blogs</returns>
 public Task <APIGatewayProxyResponse> JobApi(APIGatewayProxyRequest request, ILambdaContext context)
 {
     return(LambdaApiGatewayProxy.Handle <LambdaWorkerFunctionInvocation>(
                request,
                context,
                builder =>
                builder.Services
                .AddDynamoDbMcmaRepository()
                .AddS3FileStorage()));
 }
 /// <summary>
 /// FIMS handler for API Gateway proxy requests
 /// </summary>
 /// <param name="request"></param>
 /// <param name="lambdaContext"></param>
 /// <returns></returns>
 public async Task <APIGatewayProxyResponse> Api(APIGatewayProxyRequest request, ILambdaContext lambdaContext)
 {
     return(await LambdaApiGatewayProxy.Handle <Fims.Services.Jobs.JobRepository.JobRepository>(request, lambdaContext));
 }
Beispiel #5
0
 /// <summary>
 /// A simple function that takes a string and does a ToUpper
 /// </summary>
 /// <param name="input"></param>
 /// <param name="context"></param>
 /// <returns></returns>
 public Task <APIGatewayProxyResponse> Api(APIGatewayProxyRequest input, ILambdaContext context)
 {
     return(LambdaApiGatewayProxy.Handle <Fims.Services.ServiceRegistry.ServiceRegistry>(input, context));
 }
 /// <summary>
 /// A Lambda function to respond to API calls to create MediaInfo jobs
 /// </summary>
 /// <param name="request"></param>
 /// <param name="context"></param>
 /// <returns>The list of blogs</returns>
 public async Task <APIGatewayProxyResponse> JobApi(APIGatewayProxyRequest request, ILambdaContext context)
 {
     return(await LambdaApiGatewayProxy.Handle <LambdaWorkerFunctionInvocation>(request, context));
 }
 public static Task <APIGatewayProxyResponse> Api(APIGatewayProxyRequest request, ILambdaContext context)
 {
     return(LambdaApiGatewayProxy.Handle <Fims.Services.Jobs.JobProcessor.JobProcessor>(request, context));
 }
Beispiel #8
0
 public Task <APIGatewayProxyResponse> Api(APIGatewayProxyRequest input, ILambdaContext context)
 {
     return(LambdaApiGatewayProxy.Handle <ResourceApiRegistration>(input, context));
 }