Xamarin With Wasabi

Prev Next

How do I use Xamarin with Wasabi?

Xamarin is a mobile application development platform for Android, iOS and Windows. The AWS Transfer Utility can be used in your Xamarin application to connect to Wasabi. A Xamarin application can be developed either on Visual Studio or Xamarin Studio.

Instructions to get started:

1) Download Visual Studio

2) Download and install the AWS Toolkit for Visual Studio

3) Below is a sample code to download a file from Wasabi bucket: 

using Amazon.S3;
using Amazon.S3.Model;
using Amazon.S3.Util;

namespace s3.amazon.com.docsamples
{
class downloadFile
{

    public static void Main(string[] args)
    {
        AmazonS3Config s3Config = new AmazonS3Config();
        s3Config.ServiceURL = "https://s3.wasabisys.com";
        s3Config.RegionEndpoint = Amazon.RegionEndpoint.USEast1;
        var accessKey = "";
        var secretKey = "";

        var s3Client = new AmazonS3Client(accessKey, secretKey, s3Config);
        var transferUtility = new Amazon.S3.Transfer.TransferUtility(s3Client);

        transferUtility.Download("", 
                                 "", 
                                 "");

    }

}
}

Note that this example discusses the use of Wasabi's us-east-1 storage region. To use other Wasabi storage regions, please use the appropriate Wasabi service URL as described in this article