예제 #1
0
 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;
 }
예제 #2
0
 public S3BrowserService(S3Access s3Access)
 {
     Connect(s3Access);
 }
예제 #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 });
 }
예제 #4
0
파일: Output.cs 프로젝트: yari/zencoder-cs
 /// <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});
 }
예제 #5
0
 protected override void OnInit()
 {
     S3Access = S3BrowserService.S3Access;
 }