Class KnownAssemblyAttribute
The attribute which informs the code generator that code should be generated an assembly.
Inheritance
System.Object
KnownAssemblyAttribute
Namespace: Orleans.CodeGeneration
Assembly: Orleans.Core.Abstractions.dll
Syntax
public class KnownAssemblyAttribute : Attribute
Constructors
| Improve this Doc View SourceKnownAssemblyAttribute(String)
Initializes a new instance of KnownAssemblyAttribute.
Declaration
public KnownAssemblyAttribute(string assemblyName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | assemblyName | The target assembly name. |
KnownAssemblyAttribute(Type)
Initializes a new instance of KnownAssemblyAttribute.
Declaration
public KnownAssemblyAttribute(Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | A type contained by the target assembly. The type itself is not relevant, and it's just a way to inrectly identify the assembly. |
Properties
| Improve this Doc View SourceAssembly
Gets or sets the assembly to include in code generation.
Declaration
public Assembly Assembly { get; set; }
Property Value
| Type | Description |
|---|---|
| Assembly |
TreatTypesAsSerializable
Gets or sets a value indicating whether or not to assume that all types in the specified assembly are serializable.
Declaration
public bool TreatTypesAsSerializable { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Remarks
This is equivalent to specifying KnownTypeAttribute for all types.