Skip to content

Instantly share code, notes, and snippets.

@Kevin-Bronsdijk
Created February 10, 2016 04:57
Show Gist options
  • Save Kevin-Bronsdijk/2a2378fa4cdb4e43688d to your computer and use it in GitHub Desktop.
Save Kevin-Bronsdijk/2a2378fa4cdb4e43688d to your computer and use it in GitHub Desktop.
// 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