ExtendedPropertiesProvider
Namespace: Proffer.Storage.FileSystem.Properties.Json.Internal
Provides a way to store and retrieve extended file properties to match the requirements of Proffer.Storage.IFileProperties on a File System using JSON files.
public class ExtendedPropertiesProvider : Proffer.Storage.FileSystem.IExtendedPropertiesProvider
Inheritance Object → ExtendedPropertiesProvider
Implements IExtendedPropertiesProvider
Constructors
ExtendedPropertiesProvider(IOptions<FileSystemPropertiesJsonOptions>)
Initializes a new instance of the ExtendedPropertiesProvider class.
public ExtendedPropertiesProvider(IOptions<FileSystemPropertiesJsonOptions> options)
Parameters
options
IOptions<FileSystemPropertiesJsonOptions>
The options.
Methods
GetExtendedPropertiesAsync(String, IPrivateFileReference)
Gets the extended properties of a file reference.
public 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.
public 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
A task that represents the asynchronous operation.