Show / Hide Table of Contents

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 Source

GrainTypeConfiguration(String)

Constructor.

Declaration
public GrainTypeConfiguration(string type)
Parameters
Type Name Description
System.String type

Grain type of this configuration.

| Improve this Doc View Source

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 Source

AreDefaults

Whether this is a defualt configuration that applies to all grain types.

Declaration
public bool AreDefaults { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

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>
| Improve this Doc View Source

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 Source

Load(XmlElement)

Load this configuration from xml element.

Declaration
public static GrainTypeConfiguration Load(XmlElement xmlElement)
Parameters
Type Name Description
XmlElement xmlElement
Returns
Type Description
GrainTypeConfiguration
| Improve this Doc View Source

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.

Extension Methods

ImmutableExt.AsImmutable<T>(T)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX