Class FileFormatValidationProcessor
A FileProcessor that validates a file's content against its declared extension using a configured set of FileFormat instances. The file content is not modified; the processor either passes the file through unchanged or throws a FileProcessingException if the content does not match the expected file format.
Inherited Members
Namespace: FulcrumFS
Assembly: FulcrumFS.dll
Syntax
public sealed class FileFormatValidationProcessor : FileProcessor, IFileProcessingPipelineProvider, IFileProcessingPipelineSelector
Constructors
| Name | Description |
|---|---|
| FileFormatValidationProcessor(FileFormatValidationOptions) | Initializes a new instance of the FileFormatValidationProcessor class with the specified options. |
Properties
| Name | Description |
|---|---|
| AllowedFileExtensions | Gets the file extensions that this processor allows, including the leading dot (e.g., ".jpg", ".png"), or an empty collection if all file extensions are allowed. |
| Options | Gets the options used to configure this processor. |
Methods
| Name | Description |
|---|---|
| ProcessAsync(FileProcessingContext) | Processes the file represented by the specified FileProcessingContext. |