Skip to content

ORLEANS0007: Use one Orleans activation constructor

PropertyValue
CategoryUsage
SeverityError
Code fixNot available

This legacy rule represents ambiguous constructor selection for an Orleans-serialized type. Current Orleans activation uses at most one constructor selected for generated activation.

Ambiguous constructor metadata prevents deterministic object activation. The older [OrleansConstructor] marker is obsolete and is not used by current Orleans activation.

Remove obsolete or duplicate constructor markers. When generated activation requires an explicit constructor, use one [GeneratedActivatorConstructor].

If this diagnostic appears because constructor declarations carry invalid [GenerateSerializer] attributes, remove those constructor-level attributes.

Suppress only for a known compatibility or test artifact after all constructor annotations have been reviewed.

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