The configuration steps for .NET with Stook are listed below:
- Download Visual Studio.
- Download and install the AWS Toolkit for Visual Studio.
This toolkit has a lot of code examples to help you get started easily.
Here is a sample code for creating a bucket:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Amazon.S3; using Amazon.S3.Model; using Amazon.S3.Util; namespace s3Example { class Program { static string bucketName = "medianovatest"; static void Main(string[] args) { AmazonS3Config s3Config = new AmazonS3Config(); s3Config.RegionEndpoint = Amazon.RegionEndpoint.USEast1; s3Config.ServiceURL = "https://xxxxxxxxx.mncdn.com"; s3Config.ForcePathStyle = true; var accessKey = "Access Key giriniz"; var secretKey = "Secret Key giriniz"; using (var s3Client = new AmazonS3Client(accessKey, secretKey, s3Config)) { if (!(AmazonS3Util.DoesS3BucketExist(s3Client, bucketName))) { PutBucketRequest pq1 = new PutBucketRequest { BucketName = bucketName, UseClientRegion=true }; PutBucketResponse pq12 = s3Client.PutBucket(pq1); } } } } }
If you have a problem with your account or application, you can email support@medianova.com or reach our support team by phone +90 212 275 5456.
Medianova Team