Example #1
0
 public FileUseCases(
     FileRepository fileRepository,
     IObjectStorageService objectStorage)
 {
     _fileRepository = fileRepository;
     _objectStorage  = objectStorage;
 }
Example #2
0
File: File.cs Project: grroma/mems
 public async Task Delete(IObjectStorageService storageService)
 {
     if (Path != null)
     {
         var(bucket, key) = SplitPath();
         await storageService.Delete(bucket, key);
     }
 }
Example #3
0
 public ObjectPlusPageModel(IObjectStorageService objectStorage)
 {
     _objectStorage = objectStorage;
     CreatedObject  = new Models.Object
     {
         Nodes = new List <Node>()
     };
     ObjectNodes = new ObservableCollection <Grouping <Node, Material> >();
 }
Example #4
0
 public AdapterController(ILoggerFactory loggerFactory,
                          IHostingEnvironment env,
                          IObjectStorageService objectStorageService,
                          AdapterFactory adapterFactory)
 {
     _logger = loggerFactory.CreateLogger <AdapterController>();
     _env    = env;
     _objectStorageService = objectStorageService;
     _adapterFactory       = adapterFactory;
 }
Example #5
0
File: File.cs Project: grroma/mems
        public string GenerateUrl(IObjectStorageService storageService)
        {
            if (Path == null)
            {
                return(null);
            }

            var(bucket, key) = SplitPath();
            return(storageService.GetDownloadUrl(bucket, key));
        }
Example #6
0
File: File.cs Project: grroma/mems
        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;
 }
Example #8
0
 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;
 }
Example #9
0
        /// <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);
            }
        }
Example #10
0
 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;
 }
Example #12
0
 public EstimatesPageModel(IObjectStorageService objectStorage)
 {
     _objectStorage = objectStorage;
 }
Example #13
0
 public ObjectPageModel(IObjectStorageService objectStorage)
 {
     _objectStorage = objectStorage;
 }
 public CardPositionPageModel(IDirectoryStorageService directoryStorage, IObjectStorageService objectStorage)
 {
     _directoryStorage = directoryStorage;
     _objectStorage    = objectStorage;
 }