Interface IStorageClient
Namespace: IndicoV2-Storage
Assembly: IndicoV2-Abstractions-dll
public interface IStorageClient
Methods
Task<Stream> GetAsync(Uri uri, CancellationToken cancellationToken)
Parameters
uri
Uri
cancellationToken
CancellationToken
Returns
Task[Stream](https://learn-microsoft-com/dotnet/api/system-io-stream)\
JArray Serialize(IEnumerable<IFileMetadata> filesMetadata)
Parameters
filesMetadata
IEnumerable<ifilemetadata>
Returns
JArray
[Obsolete("On this level it's preferable to use streams instead of paths")]
Task<IEnumerable<IFileMetadata>> UploadAsync(IEnumerable<string> filePaths, CancellationToken cancellationToken)
Parameters
filePaths
IEnumerable[string](https://learn-microsoft-com/dotnet/api/system-string)\
cancellationToken
CancellationToken
Returns
Task[ienumerable](https://learn-microsoft-com/dotnet/api/system-collections-generic-ienumerable\-1)<[ifilemetadata](indicov2-storage-models-ifilemetadata)\>
Task<(string Name, string Meta)[]> UploadAsync(IEnumerable<(string Path, Stream Content)> files, CancellationToken cancellationToken)
Parameters
files
IEnumerable<(string Path, Stream Content)>
cancellationToken
CancellationToken
Returns
Updated about 1 year ago