Skip to content

ORLEANS0009: Use a registered grain-call return type

PropertyValue
CategoryUsage
SeverityError
Code fixNot available

An Orleans remote-interface method has no valid invokable-base-type mapping for its return type and selected proxy base.

Orleans cannot generate and bind the invocation object and proxy method for the remote call.

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 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

See Customize Orleans code generation.