public void Connect(S3Access s3Access) { _client = new AmazonS3Client( new BasicAWSCredentials(s3Access.AccessKey, s3Access.SecretKey), new AmazonS3Config { ServiceURL = s3Access.ServiceUrl, UseHttp = s3Access.UseHttps, ForcePathStyle = true } ); S3Access = s3Access; }
public S3BrowserService(S3Access s3Access) { Connect(s3Access); }
/// <summary> /// Appends the given S3 access control to this instance's <see cref="AccessControl"/> collection. /// </summary> /// <param name="accessControl">The access controls to append.</param> /// <returns>The instance.</returns> public Thumbnails WithAccessControl(S3Access accessControl) { return this.WithAccessControls(new S3Access[] { accessControl }); }
/// <summary> /// Appends the given S3 access control to this instance's <see cref="AccessControl"/> collection. /// </summary> /// <param name="accessControl">The access controls to append.</param> /// <returns>The instance.</returns> public Output WithAccessControl(S3Access accessControl) { return this.WithAccessControls(new[] {accessControl}); }
protected override void OnInit() { S3Access = S3BrowserService.S3Access; }