Class ConsiderForCodeGenerationAttribute
The attribute which informs the code generator that code should be generated for this type.
Inheritance
System.Object
ConsiderForCodeGenerationAttribute
Namespace: Orleans.CodeGeneration
Assembly: Orleans.Core.Abstractions.dll
Syntax
public class ConsiderForCodeGenerationAttribute : Attribute
Constructors
| Improve this Doc View SourceConsiderForCodeGenerationAttribute(Type, Boolean)
Initializes a new instance of ConsiderForCodeGenerationAttribute.
Declaration
protected ConsiderForCodeGenerationAttribute(Type type, bool throwOnFailure = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The type that the generator should generate code for |
| System.Boolean | throwOnFailure | When true, it will throw an exception if code cannot be generated for this type. |
Properties
| Improve this Doc View SourceThrowOnFailure
Gets a value indicating whether or not to throw if code was not generated for the specified type.
Declaration
public bool ThrowOnFailure { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Type
Gets the type which should be considered for code generation.
Declaration
public Type Type { get; }
Property Value
| Type | Description |
|---|---|
| Type |