Oakrey.Applications.FileParsing
7.0.0
dotnet add package Oakrey.Applications.FileParsing --version 7.0.0
NuGet\Install-Package Oakrey.Applications.FileParsing -Version 7.0.0
<PackageReference Include="Oakrey.Applications.FileParsing" Version="7.0.0" />
<PackageVersion Include="Oakrey.Applications.FileParsing" Version="7.0.0" />
<PackageReference Include="Oakrey.Applications.FileParsing" />
paket add Oakrey.Applications.FileParsing --version 7.0.0
#r "nuget: Oakrey.Applications.FileParsing, 7.0.0"
#:package Oakrey.Applications.FileParsing@7.0.0
#addin nuget:?package=Oakrey.Applications.FileParsing&version=7.0.0
#tool nuget:?package=Oakrey.Applications.FileParsing&version=7.0.0
Oakrey.Applications.FileParsing
Base infrastructure for reactive file parsing in .NET 10 Windows applications.
Features
- Parses the file selected by an
IFileBrowsingService. - Publishes the current parsed instance through
FileParsed. - Cancels an older selection load when a newer file is selected.
- Prevents an older parse result from replacing a newer selection.
- Supports optional startup loading through
IPreLoadable. - Publishes preload failures through the existing
IObservable<PreLoadingException>. - Logs with format placeholders and separate arguments.
- Keeps detailed exceptions in logs while user prompts contain generic messages.
Dependencies
Oakrey.Applications.AbstractionsOakrey.Applications.FileBrowsing.AbstractionsOakrey.Applications.UserPrompts.AbstractionsOakrey.Disposables3.0.0Oakrey.Log.Abstractions3.0.0System.Reactive6.1.0
Extending the parser
public sealed class DocumentService(
IAutoLoadServiceSettings settings,
IFileBrowsingService browser,
IUserPrompter<DocumentService> prompter)
: FileParsingServiceBase<Document>(settings, browser, prompter)
{
protected override string FileType => "Document";
protected override Task<Document> ParseFile(
FileInfo file,
CancellationToken cancellationToken)
{
return Document.LoadAsync(file, cancellationToken);
}
}
IsFilePathCorrect reports whether the currently selected path exists. Parse success is
represented independently by a non-null Instance.
Interface note
The repository currently also contains an unreferenced FileParsing.Abstractions project
with a duplicate IFileParsingService<T>. It is intentionally not merged here because moving
the interface would change its assembly identity and requires an explicit compatibility decision.
License
MIT. Copyright (c) Oakrey 2016-present.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-windows7.0 is compatible. |
-
net10.0-windows7.0
- Oakrey.Applications.Abstractions (>= 7.0.0)
- Oakrey.Applications.FileBrowsing.Abstractions (>= 7.0.0)
- Oakrey.Applications.UserPrompts (>= 7.0.0)
- Oakrey.Disposables (>= 3.0.0)
- Oakrey.Log.Abstractions (>= 3.0.0)
- System.Reactive (>= 6.1.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Oakrey.Applications.FileParsing:
| Package | Downloads |
|---|---|
|
Oakrey.Applications.FileParsing.DBC
Specialized file parsing library for DBC (CAN database) files. Built on FileParsing framework with automatic parsing into DbcMatrix objects, reactive updates, and extended file management. Features CAN message/signal access, template support, and seamless integration with Oakrey.DBC parser. |
|
|
Oakrey.Applications.FileParsing.LDF
Specialized file parsing library for LDF (LIN Description File) files. Built on FileParsing framework with automatic parsing into LdfMatrix objects, reactive updates, and extended file management. Features LIN frame/signal access, schedule tables, template support, and seamless integration with Oakrey.LDF parser. |
|
|
Oakrey.Applications.FileParsing.Ini
Specialized file parsing library for INI configuration files. Built on FileParsing framework with automatic parsing, reactive updates, and file browsing integration. Features auto-load support, observable patterns, and seamless integration with Oakrey.Files INI reader. |
GitHub repositories
This package is not used by any popular GitHub repositories.