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);
 }
Beispiel #3
0
 /// <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 });
 }
Beispiel #4
0
 /// <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});
 }
Beispiel #5
0
 protected override void OnInit()
 {
     S3Access = S3BrowserService.S3Access;
 }