Closed AloisMaierhofer closed 3 months ago
Is there a fix I can do at the library level instead of all these workarounds?
I guess it should be very easy:
in class FluentStorage.Factory
in the FluentStorage.AWS project
just add the IBlobStorageFactory this
parameter:
public static IBlobStorage MinIO(
this IBlobStorageFactory factory, // missing parameter in v5.3.0
string accessKeyId,
string secretAccessKey,
string bucketName,
string awsRegion,
string minioServerUrl,
string sessionToken = null)
{
return (IBlobStorage) AwsS3BlobStorage.FromMinIO(accessKeyId, secretAccessKey, bucketName, awsRegion, minioServerUrl, sessionToken);
}
this should do the trick, actually.
Your prompt response is highly appreciated.
The MinIO (meant to be) extension method in
FluentStorage.Factory
is missing theIBlobStorageFactory this
parameter.As a workaround one can call
FluentStorage.Factory.MinIO
directly.If more assemblies that implement the
FluentStorage.Factory
extension methods class (for example AWS and Azure), additional steps are required to be able to select the AWS - related version of this class:extern alias FluentStorageAWS;
at the very beginning of the file you need it (before usings)FluentStorageAWS.FluentStorage.Factory.MinIO(...)