Skip to content

ORLEANS0011: Rename a duplicated Alias

PropertyValue
CategoryUsage
SeverityError
Code fixPartially available

Different types use the same non-empty [Alias], or multiple methods in one grain interface use the same alias.

The collision creates ambiguous type registration, serialization identity, or RPC method dispatch.

Give each serialized type a globally unique stable alias and each grain-interface method a unique alias within its interface.

The code fix can rename later duplicate method aliases with a numeric suffix. Type alias collisions require a deliberate manual rename.

Do not suppress a real collision. Suppress only a proven analyzer-scope false positive after confirming that the identities cannot coexist.

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