API reference — Tooling

Nuvora.Nexus.Relay.Generators

Roslyn analyzer for Nuvora Nexus Relay: compile-time checks that command/query types have exactly one handler (RELAY001/RELAY002), and the registration hook for generated handler wiring.

dotnet add package Nuvora.Nexus.Relay.Generators

Nuvora.Nexus.Relay.Generators

RelayHandlerAnalyzer

public sealed class RelayHandlerAnalyzer : DiagnosticAnalyzer

Compile-time check that every command/query type has exactly one handler — the analog of Relay’s runtime registration, surfaced at build time. Reports RELAY001 when a command/query has no handler in the compilation and RELAY002 when it has more than one. Inert in any project that does not reference Relay (the marker interfaces are then absent).

Properties

override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; }

Returns a set of descriptors for the diagnostics that this analyzer is capable of producing.

Methods

override void Initialize(AnalysisContext context)

Called once at session start to register actions in the analysis context.