Class DataIntegrityFactory
- Namespace
- Cuemon.Data.Integrity
- Assembly
- Cuemon.Data.Integrity.dll
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
file
FileInfoThe FileInfo to convert.
setup
Action<FileIntegrityOptions>The FileIntegrityOptions which need to be configured.
Returns
- IDataIntegrity
An object implementing the IDataIntegrity interface that represents the integrity of
file
.
Exceptions
- ArgumentNullException
file
cannot be null.