Publish() public méthode

Publish a file to a S3 bucket, in the folder specified, optionally making it publically readable.
public Publish ( string files, string bucketName, string folder, bool publicRead ) : void
files string
bucketName string
folder string
publicRead bool
Résultat void
 private void PublishFiles(AwsClientDetails clientDetails)
 {
     using (var helper = new S3Helper(clientDetails))
     {
         helper.Publish(SourceFiles, DestinationBucket, DestinationFolder, PublicRead);
         Log.LogMessage(MessageImportance.Normal, "Published {0} files to S3", SourceFiles.Length);
     }
 }
Exemple #2
0
 private void PublishFiles(AwsClientDetails clientDetails)
 {
     using (var helper = new S3Helper(clientDetails))
     {
         helper.Publish(SourceFiles, DestinationBucket, DestinationFolder, PublicRead);
         Log.LogMessage(MessageImportance.Normal, "Published {0} files to S3", SourceFiles.Length);
     }
 }