Class DataIntegrityFactory
Provides access to factory methods for creating and configuring implementations of the IDataIntegrity interface.
public static class DataIntegrityFactory
- Inheritance
-
DataIntegrityFactory
Methods
CreateIntegrity(FileInfo, Action<FileIntegrityOptions>)
Creates and returns an object implementing the IDataIntegrity interface from the specified file.
public static IDataIntegrity CreateIntegrity(FileInfo file, Action<FileIntegrityOptions> setup)
Parameters
fileFileInfoThe FileInfo to convert.
setupAction<FileIntegrityOptions>The FileIntegrityOptions which need to be configured.
Returns
- IDataIntegrity
An object implementing the IDataIntegrity interface that represents the integrity of
file.
Exceptions
- ArgumentNullException
filecannot be null.