Skip to content

ORLEANS0008: Grain interfaces cannot contain properties

PropertyValue
CategoryUsage
SeverityError
Code fixNot available

An interface used as an Orleans remote contract declares an instance property.

Properties do not define supported explicit Orleans RPC operations and obscure the asynchronous remote-call boundary.

Replace the property with asynchronous get or set methods which use supported grain-call return types.

Suppress only when an interface inherits Orleans addressability but is proven never to be remoted.

[*.cs]
dotnet_diagnostic.ORLEANS0008.severity = none