AWS SDK for .NET Version 2
Written by Kay Ewbank   
Friday, 26 July 2013

Amazon has released the developer preview of the next major version of AWS SDK for .NET.

 

Version 2 SDK adds support for Windows Store and Windows Phone apps so you can use the AWS cloud from those platforms. Support has also been added for the .NET task-based asynchronous pattern.

aws

The support for Windows Store and Windows Phone Apps means you can connect your Windows Phone or Windows Store apps to AWS services, and you can build a cross-targeted application that's backed by AWS. Until now AWS mobile support was limited to the big-name duo with SDK for iOS and SDK for Android.

The other big enhancement to the new version is the support for the task-based asynchronous pattern. This pattern uses the async and await keywords and makes it easier to program asynchronous operations against AWS.

The Amazon Web Services Blog gives an example of how you could upload files to S3 asynchronously like this:

async Task UploadFile(string bucketName,
                               string filepath)
 var s3Client = new AmazonS3Client();
 var request = new PutObjectRequest()
 {
  BucketName = bucketName,
  FilePath = filepathawait
 }

 s3Client.PutObjectAsync(request);
 Console.WriteLine("File Uploaded");

Then this function could be called asynchronously like this:

await UploadFile(bucketName, filepath);

Version 2 of the SDK also includes a version compiled for .NET 3.5 Framework that contains the Begin and End methods for applications that aren't yet ready to move to .NET 4.5.

Another useful change is the ability to set the default region once in the app.config or web.config file, and use that region for all of your SDK calls.

aws

 

More Information

Migration Guide

Download

Related Articles

Amazon SDK for Node.js

AWS Elastic Beanstalk For Node.js

Getting Started with Node.js

 

To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, FacebookGoogle+ or Linkedin,  or sign up for our weekly newsletter.

 

raspberry pi books

 

Comments




or email your comment to: comments@i-programmer.info

 

Banner


Insights From AI Index 2024 Report
17/04/2024

Published this week, the latest Stanford HAI AI Index report tracks worldwide trends in AI. A mix of its new research and findings from many other sources, it provides a wide ranging look at how  [ ... ]



Azure AI And Pgvector Run Generative AI Directly On Postgres
26/03/2024

It's a match made in heaven. The Azure AI extension enables the database to call into various Azure AI services like Azure OpenAI. Combined with pgvector you can go far beyond full text search. Let's  [ ... ]


More News

Last Updated ( Saturday, 27 July 2013 )