usingMinio;usingMinio.DataModel.Args;varendpoint=Environment.GetEnvironmentVariable("S3_ENDPOINT")??thrownewInvalidOperationException("S3_ENDPOINT is required");varaccessKey=Environment.GetEnvironmentVariable("S3_ACCESS_KEY")??thrownewInvalidOperationException("S3_ACCESS_KEY is required");varsecretKey=Environment.GetEnvironmentVariable("S3_SECRET_KEY")??thrownewInvalidOperationException("S3_SECRET_KEY is required");varuseSsl=bool.TryParse(Environment.GetEnvironmentVariable("S3_USE_SSL"),outvarssl)&&ssl;varclient=newMinioClient().WithEndpoint(endpoint).WithCredentials(accessKey,secretKey).WithSSL(useSsl).Build();conststringbucket="dotnet-quickstart";conststringobjectName="hello.txt";conststringfilePath="hello.txt";varexists=awaitclient.BucketExistsAsync(newBucketExistsArgs().WithBucket(bucket));if(!exists){awaitclient.MakeBucketAsync(newMakeBucketArgs().WithBucket(bucket));}awaitclient.PutObjectAsync(newPutObjectArgs().WithBucket(bucket).WithObject(objectName).WithFileName(filePath).WithContentType("text/plain"));Console.WriteLine($"Uploaded {objectName} to {bucket}");