Ejemplo n.º 1
0
        public AmazonS3(string keyId, string secretKey, Database db)
            : base(db)
        {
            s3Config = new AmazonS3Config();
            s3Config.ServiceURL = "s3.amazonaws.com";
            s3Config.CommunicationProtocol = Protocol.HTTPS;

            client = AWSClientFactory.CreateAmazonS3Client(keyId, secretKey, s3Config);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AmazonS3VirtualFile"/> class.
 /// </summary>
 /// <param name="provider">The provider.</param>
 /// <param name="virtualPath">The virtual path.</param>
 public AmazonS3VirtualFile(AmazonS3VirtualPathProvider provider, string virtualPath) : base(virtualPath)
 {
     _provider    = provider;
     _virtualPath = virtualPath;
     this._client = AWSClientFactory.CreateAmazonS3Client(new AmazonS3Config
     {
         ServiceURL            = "s3.amazonaws.com",
         CommunicationProtocol = Protocol.HTTP
     });
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AmazonS3VirtualFile"/> class.
 /// </summary>
 /// <param name="provider">The provider.</param>
 /// <param name="virtualPath">The virtual path.</param>
 public AmazonS3VirtualFile(AmazonS3VirtualPathProvider provider, string virtualPath)
     : base(virtualPath)
 {
     _provider = provider;
     _virtualPath = virtualPath;
     this._client = AWSClientFactory.CreateAmazonS3Client(new AmazonS3Config
                                                              {
                                                                  ServiceURL = "s3.amazonaws.com",
                                                                  CommunicationProtocol = Protocol.HTTP
                                                              });
 }