Exemple #1
0
        public Handler()
        {
            bucketName      = Environment.GetEnvironmentVariable("DATA_BUCKET_NAME");
            region          = Environment.GetEnvironmentVariable("DATA_BUCKET_REGION");
            s3Client        = new AmazonS3Client(RegionEndpoint.GetBySystemName(region));
            transferUtility = new TransferUtility(s3Client);
            serializer      = new JsonSerializer();

            _mulRepository = new S3MatrixMulRepository(transferUtility, serializer, bucketName);
            handler        = new FunctionHandler(_mulRepository);
        }
Exemple #2
0
 public FunctionHandler(IMatrixMulRepository datastore)
 {
     this.datastore = datastore;
 }