public YandexStorageService(YandexStorageOptions options) { _protocol = options.Protocol; _bucketName = options.BucketName; _region = options.Region; _endpoint = options.Endpoint; _accessKey = options.AccessKey; _secretKey = options.SecretKey; _hostName = options.HostName; _service = options.Service; _supPath = options.SubPath; _presignedUrlExpirationInHours = options.PresignedUrlExpirationInHours; }
public static YandexStorageService CreateYandexObjectService(this YandexStorageOptions options) { return(new YandexStorageService(options)); }