Class TypeCodeOverrideAttribute
The TypeCodeOverrideAttribute attribute allows to specify the grain interface ID or the grain class type code to override the default ones to avoid hash collisions
Inheritance
System.Object
TypeCodeOverrideAttribute
Namespace: Orleans.CodeGeneration
Assembly: Orleans.Core.Abstractions.dll
Syntax
public sealed class TypeCodeOverrideAttribute : Attribute
Constructors
| Improve this Doc View SourceTypeCodeOverrideAttribute(Int32)
Declaration
public TypeCodeOverrideAttribute(int typeCode)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | typeCode |
Properties
| Improve this Doc View SourceTypeCode
Use a specific grain interface ID or grain class type code (e.g. to avoid hash collisions)
Declaration
public int TypeCode { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |