ORLEANS0008: Grain interfaces cannot contain properties
| Property | Value |
|---|---|
| Category | Usage |
| Severity | Error |
| Code fix | Not available |
An interface used as an Orleans remote contract declares an instance property.
Impact
Section titled “Impact”Properties do not define supported explicit Orleans RPC operations and obscure the asynchronous remote-call boundary.
How to fix
Section titled “How to fix”Replace the property with asynchronous get or set methods which use supported grain-call return types.
Suppress the diagnostic
Section titled “Suppress the diagnostic”Suppress only when an interface inherits Orleans addressability but is proven never to be remoted.
[*.cs]dotnet_diagnostic.ORLEANS0008.severity = none