GitHunt
IG

igolopolosov/AspNetCore.Yandex.ObjectStorage

S3 API

AspNetCore.Yandex.ObjectStorage

.Net Core library for Yandex Object Storage S3 API (https://cloud.yandex.ru/docs/storage/s3/api-ref/).

Build Status

How to use

To inject service user extension method AddYandexObjectStorage to IServiceCollection

services.AddYandexObjectStorage(options =>
{
  options.BucketName = "bucketName";
  options.AccessKey = "your-access-key";
  options.SecretKey = "your-secret-key";
});

Options is a YandexStorageOptions class.
It provides access to setup next properties:

string Protocol - by default -> "https"
string BucketName
string Location - by default -> "us-east-1"
string Endpoint - by default -> "storage.yandexcloud.net"
string AccessKey
string SecretKey

Languages

C#99.5%Shell0.5%

Contributors

Created September 14, 2019
Updated March 14, 2021
igolopolosov/AspNetCore.Yandex.ObjectStorage | GitHunt