Skip to content

Diagnostics

Compiler diagnostics emitted by Observables source generators (IDs are stable per domain).

Events (OBS2001–OBS2004)

IDSeverityWhen
OBS2001WarningClassic Events() — unsupported event delegate signature
OBS2002WarningEventHandlers() — not EventHandler / (object, T) shape
OBS2003WarningRoutedEvents() — unsupported routed event delegate
OBS2004WarningRoutedEventHandlers() — unsupported routed handler delegate

Category: Observables.Events.

RestAPI (OBS3001–OBS3005)

IDSeverityWhen
OBS3001WarningInterface method missing HTTP verb attribute or non-literal path
OBS3002ErrorObservables.RestAPI runtime not referenced
OBS3003ErrorUnsupported return type on API method
OBS3004ErrorPath template does not match method parameters
OBS3005ErrorIObservable<T> return without Observables.RestAPI.Reactive package

Category: Observables.RestAPI.

SignalR (OBS4001–OBS4006)

IDSeverityWhen
OBS4001WarningHub member missing boundary attribute or non-literal hub method name
OBS4002ErrorObservables.SignalR runtime not referenced
OBS4003ErrorUnsupported return type (must be Observable<T> / IObservable<T>; Send needs Unit)
OBS4004ErrorMember shape mismatch (e.g. [HubOn] on a method)
OBS4005ErrorIObservable<T> without Observables.SignalR.Reactive package
OBS4006ErrorUnsupported client-to-server streaming parameter

Category: Observables.SignalR.

Mqtt (OBS5001–OBS5006)

IDSeverityWhen
OBS5001WarningMqtt member missing boundary attribute or non-literal topic template
OBS5002ErrorObservables.Mqtt runtime not referenced
OBS5003ErrorUnsupported return type on Mqtt member
OBS5004ErrorMember shape mismatch (e.g. [MqttSubscribe] on a method)
OBS5005ErrorIObservable<T> without Observables.Mqtt.Reactive package
OBS5006ErrorUnsupported topic template, extra parameters, or subscribe placeholder syntax

Category: Observables.Mqtt.

Released under the MIT License.