Ejemplo n.º 1
0
 public DataService(GcpConfiguration config)
 {
     _db         = DatastoreDb.Create(config.ProjectId);
     _storage    = StorageClient.Create();
     _keyFactory = _db.CreateKeyFactory(Kind);
     _bucketName = config.BucketName;
 }
Ejemplo n.º 2
0
        public ProcessController(ILogger <ProcessController> logger, GcpConfiguration config)
        {
            _logger = logger;
            _config = config;

            _storage = StorageClient.Create();
        }
Ejemplo n.º 3
0
 public UploadController(IDataService dataService, IImageAnalyser imageDescriptor, GcpConfiguration config, ILogger <UploadController> logger)
 {
     _dataService     = dataService;
     _imageDescriptor = imageDescriptor;
     _config          = config;
     _logger          = logger;
 }