ORLEANS0009: Use a registered grain-call return type
| Property | Value |
|---|---|
| Category | Usage |
| Severity | Error |
| Code fix | Not available |
An Orleans remote-interface method has no valid invokable-base-type mapping for its return type and selected proxy base.
Impact
Section titled “Impact”Orleans cannot generate and bind the invocation object and proxy method for the remote call.
How to fix
Section titled “How to fix”Use a registered return type such as Task, Task<T>, ValueTask, or ValueTask<T>. For a custom calling abstraction, register a compatible InvokableBaseType and any required ReturnValueProxy initializer for every selected proxy base.
Malformed custom mappings report ORLEANS0026.
Suppress the diagnostic
Section titled “Suppress the diagnostic”Suppress only when a valid custom runtime registration is intentionally invisible to the analyzer. Validate generated proxy and invokable code independently.
[*.cs]dotnet_diagnostic.ORLEANS0009.severity = none