Custom server URLs

Oct 3, 2012 at 1:51 PM

As far as I can tell, ThreeSharp currently only uses the standard US Amazon S3 server ( and cloudfront (


There are other S3 servers, such as regional services (for example for EU Ireland) and resellers (for example DreamHost DreamObjects


This quick fix to Affirma.ThreeSharp.ThreeSharpConfig allows a custom server to be set. If no server is set, it uses the existing behaviour of switching between cloudfront and US standard S3 based on ThreeSharpServiceType. If Server property is set to null, it will also revert back to this behaviour.


ThreeSharpConfig .cs:

private string server;

/// <summary>
/// Server
/// </summary>
public String Server
    get { return this.server == null ? this.GetServerByType() : this.server; }
    set { this.server = value; }