class

ExporterRegistry

Namespace
RefSafe.Pro
Assembly
RefSafe.Pro.Editor
public static class ExporterRegistry

Discovers IReportExporter implementations decorated with ReportExporterAttribute and exposes them to the UI and CLI. External assemblies get picked up automatically on next cold access; call Refresh to re-scan after assembly reload.

Properties

All
public static IReadOnlyList<ExporterEntry> All { get; }

All discovered exporters, sorted alphabetically by display name.

Methods

Refresh
public static void Refresh()

Force re-discovery on next access. Call after assembly reload.

Find
public static IReportExporter Find(string id)

Finds an exporter by its CLI id (case-insensitive). Returns null if not found.

FindEntry
public static ExporterEntry? FindEntry(string id)

Looks up the full entry by id, or null.

TryExport
public static bool TryExport(string formatId, IReadOnlyList<ScanIssue> issues, string filePath, ILogger log)

Resolve the exporter for formatId (case-insensitive) and invoke Export with try/catch isolation. Returns true on success, false if the format is unknown or the exporter throws.

Generated from Editor/Features/Export/Application/ExporterRegistry.cs in RefSafe Pro 2.2.0.