Class GrainTypeConfiguration
Grain type specific application configuration.
Inheritance
System.Object
GrainTypeConfiguration
Namespace: Orleans.Runtime.Configuration
Assembly: Orleans.Core.Legacy.dll
Syntax
public class GrainTypeConfiguration : object
Constructors
| Improve this Doc View SourceGrainTypeConfiguration(String)
Constructor.
Declaration
public GrainTypeConfiguration(string type)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | type | Grain type of this configuration. |
GrainTypeConfiguration(String, Nullable<TimeSpan>)
Constructor.
Declaration
public GrainTypeConfiguration(string type, TimeSpan? ageLimit)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | type | Grain type of this configuration. |
| System.Nullable<TimeSpan> | ageLimit | Age limit for this type. |
Properties
| Improve this Doc View SourceAreDefaults
Whether this is a defualt configuration that applies to all grain types.
Declaration
public bool AreDefaults { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
CollectionAgeLimit
The time period used to collect in-active activations of this type.
Declaration
public TimeSpan? CollectionAgeLimit { get; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<TimeSpan> |
FullTypeName
The type of the grain of this configuration.
Declaration
public string FullTypeName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
| Improve this Doc View SourceLoad(XmlElement)
Load this configuration from xml element.
Declaration
public static GrainTypeConfiguration Load(XmlElement xmlElement)
Parameters
| Type | Name | Description |
|---|---|---|
| XmlElement | xmlElement |
Returns
| Type | Description |
|---|---|
| GrainTypeConfiguration |
SetCollectionAgeLimit(Nullable<TimeSpan>)
Sets a custom collection age limit for a grain type.
Declaration
public void SetCollectionAgeLimit(TimeSpan? ageLimit)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Nullable<TimeSpan> | ageLimit | Age limit for this type. |