C# Class SquishIt.S3.S3Renderer

Inheritance: IRenderer, IDisposable
Mostrar archivo Open project: AlexCuse/SquishIt.S3

Private Properties

Property Type Description
ContentForUpload Stream
FileExists bool
S3Renderer System
UploadContent void
WithCheckForFileExistence S3Renderer
WithCompressor S3Renderer

Public Methods

Method Description
Create ( IAmazonS3 s3client ) : S3Renderer
Dispose ( ) : void
Render ( string content, string outputPath ) : void
WithBucketName ( string bucketName ) : S3Renderer
WithCannedAcl ( S3CannedACL acl ) : S3Renderer
WithDefaultKeyBuilder ( string physicalApplicationPath, string virtualDirectory ) : S3Renderer
WithGZipCompressionEnabled ( ) : S3Renderer
WithHeaders ( NameValueCollection headers ) : S3Renderer
WithInvalidator ( IInvalidator instance ) : S3Renderer
WithKeyBuilder ( IKeyBuilder builder ) : S3Renderer
WithOverwriteBehavior ( bool overwrite ) : S3Renderer

Private Methods

Method Description
ContentForUpload ( string content ) : Stream
FileExists ( string key ) : bool
S3Renderer ( IAmazonS3 s3client ) : System
UploadContent ( string key, Stream content ) : void
WithCheckForFileExistence ( ICheckForFileExistence checkForFileExistence ) : S3Renderer
WithCompressor ( ICompressor textCompressor ) : S3Renderer

Method Details

Create() public static method

public static Create ( IAmazonS3 s3client ) : S3Renderer
s3client IAmazonS3
return S3Renderer

Dispose() public method

public Dispose ( ) : void
return void

Render() public method

public Render ( string content, string outputPath ) : void
content string
outputPath string
return void

WithBucketName() public method

public WithBucketName ( string bucketName ) : S3Renderer
bucketName string
return S3Renderer

WithCannedAcl() public method

public WithCannedAcl ( S3CannedACL acl ) : S3Renderer
acl Amazon.S3.S3CannedACL
return S3Renderer

WithDefaultKeyBuilder() public method

public WithDefaultKeyBuilder ( string physicalApplicationPath, string virtualDirectory ) : S3Renderer
physicalApplicationPath string
virtualDirectory string
return S3Renderer

WithGZipCompressionEnabled() public method

public WithGZipCompressionEnabled ( ) : S3Renderer
return S3Renderer

WithHeaders() public method

public WithHeaders ( NameValueCollection headers ) : S3Renderer
headers System.Collections.Specialized.NameValueCollection
return S3Renderer

WithInvalidator() public method

public WithInvalidator ( IInvalidator instance ) : S3Renderer
instance IInvalidator
return S3Renderer

WithKeyBuilder() public method

public WithKeyBuilder ( IKeyBuilder builder ) : S3Renderer
builder IKeyBuilder
return S3Renderer

WithOverwriteBehavior() public method

public WithOverwriteBehavior ( bool overwrite ) : S3Renderer
overwrite bool
return S3Renderer