IExtendedPropertiesProvider

Namespace: Proffer.Storage.FileSystem

Provides a way to store and retrieve extended file properties to match the requirements of Proffer.Storage.IFileProperties on a File System.

public interface IExtendedPropertiesProvider

Methods

GetExtendedPropertiesAsync(String, IPrivateFileReference)

Gets the extended properties of a file reference.

ValueTask<FileExtendedProperties> GetExtendedPropertiesAsync(string storeAbsolutePath, IPrivateFileReference file)

Parameters

storeAbsolutePath String
The store absolute path.

file IPrivateFileReference
The reference holding the file path.

Returns

ValueTask<FileExtendedProperties>
A loaded instance or a default one if not found.

SaveExtendedPropertiesAsync(String, IPrivateFileReference, FileExtendedProperties)

Saves the extended properties for a file reference.

Task SaveExtendedPropertiesAsync(string storeAbsolutePath, IPrivateFileReference file, FileExtendedProperties extendedProperties)

Parameters

storeAbsolutePath String
The store absolute path.

file IPrivateFileReference
The reference holding the file path.

extendedProperties FileExtendedProperties
The extended properties.

Returns

Task
A task that represents the asynchronous operation.