Пример #1
0
        /// <summary>
        /// A Lambda function to run the MediaInfo worker
        /// </summary>
        /// <param name="input"></param>
        /// <param name="context"></param>
        /// <returns></returns>
        public void Worker(Stream input, ILambdaContext context)
        {
            LambdaWorker.Handle <MediaInfoWorker>(
                input,
                context,
                serviceBuilder =>
            {
                serviceBuilder.Services
                .AddDynamoDbMcmaRepository()
                .AddS3FileStorage();

                serviceBuilder.AddAwsMediaInfo();
            });
        }
 /// <summary>
 /// A Lambda function to run the MediaInfo worker
 /// </summary>
 /// <param name="input"></param>
 /// <param name="context"></param>
 /// <returns></returns>
 public async Task Worker(Stream input, ILambdaContext context)
 {
     await LambdaWorker.Handle <MediaInfoWorker>(input, context, serviceBuilder => serviceBuilder.AddAwsMediaInfo());
 }