public S3FileStorageService(IAmazonS3 s3Client, IOptions <S3Options> settings, ITransferUtility transferUtility) { _transferUtility = transferUtility; _settings = settings.Value; _s3Client = s3Client; }
/// <summary> /// Initializes a new instance of MSToolKit.Core.IO.AmazonFileManagment.AmazonS3FileManager. /// </summary> public AmazonS3FileManager( IAmazonS3 s3Client, ITransferUtility transferUtility, ILogger <IAmazonS3FileManager> logger) { this.s3Client = s3Client; this.transferUtility = transferUtility; this.logger = logger; }
private void InitClient() { var awsCredentials = _credentialsFacade.GetCredentials(); var BasicAwsCredentials = new BasicAWSCredentials(awsCredentials.AccessKey, awsCredentials.SecretKey); _s3Client = new AmazonS3Client(BasicAwsCredentials, _regionEndpoint); _fileTransferUtility = new TransferUtility(_s3Client); _logger.LogInformation("S3 Client created successfully"); }
public PhotoService( ITransferUtility transferUtility, INovelGramPhotoFactory photoFactory, INovelGramUserClient userClient, ILogger <PhotoService> logger) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); this.transferUtility = transferUtility ?? throw new ArgumentNullException(nameof(transferUtility)); this.photoFactory = photoFactory ?? throw new ArgumentNullException(nameof(photoFactory)); this.userClient = userClient ?? throw new ArgumentNullException(nameof(userClient)); }
public MosaicManager(IOptions <AppOptions> appOptions, IAmazonBatch batchClient, IAmazonDynamoDB ddbClient, IAmazonECS ecsClient, IAmazonS3 s3Client, IAmazonStepFunctions stepClient) { this._appOptions = appOptions.Value; this._batchClient = batchClient; this._ddbClient = ddbClient; this._ecsClient = ecsClient; this._s3Client = s3Client; this._s3TransferUtility = new TransferUtility(s3Client); this._stepClient = stepClient; this._ddbContext = new DynamoDBContext(this._ddbClient); }
public S3PathModel( ISettings _settings, BehaviorSubject <String> _s3PathSubject, ITransferUtility _directoryTransferUtility ) { this.settings = _settings; this.S3PathSubject = _s3PathSubject; this.directoryTransferUtility = _directoryTransferUtility; // Keep default S3 Path in real-time sync with control // ToDo: Don't use subject for this S3PathSubject.Subscribe( s3Path => this.settings.S3Path = s3Path); logger.Info("S3PathModel Initialized"); }
public SymbolUploader(ILogger <SymbolUploader> logger, ITransferUtility transferUtility) { this.logger = logger; this.transferUtility = transferUtility; }
public FileService(ITransferUtility transferUtility, S3Settings s3Settings, ILogger logger) { _transferUtility = transferUtility; _s3Settings = s3Settings; _logger = logger; }
public AwsS3PersistenceRepository(ITransferUtility transferUtility, string bucketName, string configMapFileName) { _transferUtility = transferUtility; _bucketName = bucketName; _configMapFileName = configMapFileName; }
public AmazonS3BlobStorageWriter(IAmazonS3 client, ITransferUtility transferUtility) { _client = client ?? throw new ArgumentNullException(nameof(client)); _transferUtility = transferUtility ?? throw new ArgumentNullException(nameof(transferUtility)); }
public FileStoreService(string bucketName, ITransferUtility transferUtility, ILogger <FileStoreService> logger) { _bucketName = bucketName; _transferUtil = transferUtility; _logger = logger; }