/// <summary>
 /// Initializes a new instance of the <see cref="AmazonS3VirtualDirectory"/> class.
 /// </summary>
 /// <param name="provider">The virtual path provider.</param>
 /// <param name="virtualPath">The virtual path to the resource represented by this instance.</param>
 public AmazonS3VirtualDirectory(AmazonS3VirtualPathProvider provider, string virtualPath)
     : base(virtualPath)
 {
     _client = new AmazonS3Client(new AmazonS3Config {ServiceURL = "s3.amazonaws.com", CommunicationProtocol = Protocol.HTTP});
     _provider = provider;
     _virtualPath = virtualPath;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AmazonS3VirtualDirectory"/> class.
 /// </summary>
 /// <param name="provider">The virtual path provider.</param>
 /// <param name="virtualPath">The virtual path to the resource represented by this instance.</param>
 public AmazonS3VirtualDirectory(AmazonS3VirtualPathProvider provider, string virtualPath) : base(virtualPath)
 {
     _client = new AmazonS3Client(new AmazonS3Config {
         ServiceURL = "s3.amazonaws.com", CommunicationProtocol = Protocol.HTTP
     });
     _provider    = provider;
     _virtualPath = virtualPath;
 }
Esempio n. 3
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
                                                              });
 }