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); }
public FunctionHandler(IMatrixMulRepository datastore) { this.datastore = datastore; }