Class FileProcessor
Represents a base class for processing files in a file repository.
Inheritance
FileProcessor
Namespace: FulcrumFS
Assembly: FulcrumFS.dll
Syntax
public abstract class FileProcessor : IFileProcessingPipelineProvider, IFileProcessingPipelineSelector
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. |
Methods
| Name | Description |
|---|---|
| ProcessAsync(FileProcessingContext) | Processes the file represented by the specified FileProcessingContext. |
| ToPipeline(SourceBufferingMode, bool, bool) | Creates a FileProcessingPipeline that contains this processor. |
| WithVariant(string, IFileProcessingPipelineProvider) | Returns a new FileProcessingPipeline containing this processor with the specified variant appended. Sugar for
|
Explicit Interface Implementations
| Name | Description |
|---|---|
| IFileProcessingPipelineProvider.GetPipeline() | Gets the pipeline produced by this provider. |
| IFileProcessingPipelineSelector.GetPipeline(string) | Gets the pipeline to use for processing a file with the specified source extension. |