Table of Contents

Namespace DirectoryToObject

Classes

DirectoryLoadingException

Exception thrown by the library while loading a directory. Usually wraps an inner exception that is the actual cause.

DirectoryToObjectLoaderExtensions

Extension methods for interface IDirectoryToObjectLoader.

Handler

Predefined file loading handlers.

Loader

Static factory methods for creating directory loader instances implementing IDirectoryToObjectLoader .

Structs

ContextResponse

Response returned after processing a directory entry. This represents the fact that successful processing results in one of two cases: a JsonNode to be merged into the overall result or a IFileSystemDirectory instance into which the loader should recurse.

StreamOrDirectory

Value type that represents either a Stream or a IFileSystemDirectory, also implementing IDisposable so that the contents can be disposed cleanly.

Interfaces

IDirectoryLoaderContextHandler

Interface provided to the directory loader to serve as the strategy for processing entries within a directory. The directory loader will call CanProcessEntry(IFileSystemDirectory, IFileSystemEntry, string) to determine if this context handler can process a given entry, and if so, ProcessEntry(IFileSystemDirectory, IFileSystemEntry, string) to perform the processing.

IDirectoryToObjectLoader

Interface implemented by directory (to object) loaders.

IFileSystemDirectory

Abstraction of the file system from the viewpoint of a directory.

IFileSystemEntry

Abstraction of a file system entry. This is a subset of the interface provided by FileSystemInfo that can be implemented regardless of whether the file system is local, remote, or not a file system at all.