public FileUseCases( FileRepository fileRepository, IObjectStorageService objectStorage) { _fileRepository = fileRepository; _objectStorage = objectStorage; }
public async Task Delete(IObjectStorageService storageService) { if (Path != null) { var(bucket, key) = SplitPath(); await storageService.Delete(bucket, key); } }
public ObjectPlusPageModel(IObjectStorageService objectStorage) { _objectStorage = objectStorage; CreatedObject = new Models.Object { Nodes = new List <Node>() }; ObjectNodes = new ObservableCollection <Grouping <Node, Material> >(); }
public AdapterController(ILoggerFactory loggerFactory, IHostingEnvironment env, IObjectStorageService objectStorageService, AdapterFactory adapterFactory) { _logger = loggerFactory.CreateLogger <AdapterController>(); _env = env; _objectStorageService = objectStorageService; _adapterFactory = adapterFactory; }
public string GenerateUrl(IObjectStorageService storageService) { if (Path == null) { return(null); } var(bucket, key) = SplitPath(); return(storageService.GetDownloadUrl(bucket, key)); }
public async Task Upload(IObjectStorageService storageService, string bucket, string key, Stream stream) { if (Path != null) { await Delete(storageService); } await storageService.Upload(bucket, key, stream); Path = System.IO.Path.Combine(bucket, key); }
public CattleController( ICattleService cattleService, IValidator <Cattle> cattleValidator, IVoteService voteService, ICattleWithVotesService cattleWithVotesService, IObjectStorageService azureBlobService ) { _cattleService = cattleService; _cattleValidator = cattleValidator; _voteService = voteService; _cattleWithVotesService = cattleWithVotesService; _objectStorageService = azureBlobService; }
public Seed( CommonDbContext context, IOptions <DeployOptions> deployOptions, IObjectStorageService objectStorageService, IClusterManagementService clusterManagementService, ILogger <Seed> logger ) { this.dbContext = context; this.deployOptions = deployOptions.Value; this.objectStorageService = objectStorageService; this.clusterManagementService = clusterManagementService; this.logger = logger; }
/// <summary> /// コンストラクタ /// </summary> public StorageLogic( ICommonDiLogic commonDiLogic, IObjectStorageService objectStorageService) : base(commonDiLogic) { this.objectStorageService = objectStorageService; //DBのテナント情報からオブジェクトストレージの設定を初期化する。 Tenant tenant = CurrentUserInfo?.SelectedTenant; if (tenant != null && tenant.Storage != null) { config = ConvertToStorageConfig(tenant, tenant.Storage); this.objectStorageService.Initialize(config); } }
public Seed( CommonDbContext context, IRoleRepository roleRepository, IGitRepository gitRepository, IRegistryRepository registryRepository, IOptions <DeployOptions> deployOptions, IObjectStorageService objectStorageService, IClusterManagementService clusterManagementService, ILogger <Seed> logger ) { this.dbContext = context; this.roleRepository = roleRepository; this.gitRepository = gitRepository; this.registryRepository = registryRepository; this.deployOptions = deployOptions.Value; this.objectStorageService = objectStorageService; this.clusterManagementService = clusterManagementService; this.logger = logger; }
public DownloadEstimatePageModel(Services.IObjectStorageService objectStorage) { _objectStorage = objectStorage; downloader.OnFileDownloaded += OnFileDownloaded; }
public EstimatesPageModel(IObjectStorageService objectStorage) { _objectStorage = objectStorage; }
public ObjectPageModel(IObjectStorageService objectStorage) { _objectStorage = objectStorage; }
public CardPositionPageModel(IDirectoryStorageService directoryStorage, IObjectStorageService objectStorage) { _directoryStorage = directoryStorage; _objectStorage = objectStorage; }