Created
February 10, 2016 04:57
-
-
Save Kevin-Bronsdijk/2a2378fa4cdb4e43688d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Azure Blob Storage | |
using SeaMist.Model.Azure; | |
var krakenClient = new KrakenClient(connection); | |
response = await client.OptimizeWait( | |
new Uri("http://image-url.com/file.jpg"), | |
new DataStore( | |
"account", | |
"key", | |
"container" | |
) | |
); | |
// AWS S3 | |
using SeaMist.Model.S3; | |
var krakenClient = new KrakenClient(connection); | |
response = await client.OptimizeWait( | |
new Uri("http://image-url.com/file.jpg"), | |
new DataStore( | |
"key", | |
"secret", | |
"bucket", | |
"region" | |
) | |
); | |
// Azure full controll | |
response = await client.OptimizeWait(new SeaMist.Model.Azure.OptimizeWaitRequest() | |
{ | |
ImageUrl = new Uri("http://image-url.com/file.jpg"), | |
Lossy = true, | |
BlobStore = new DataStore( | |
"account", | |
"key", | |
"container" | |
) | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment