Bewerken

Delen via


GrainTypeSharedContext Class

Definition

Functionality which is shared between all instances of a grain type.

public class GrainTypeSharedContext
type GrainTypeSharedContext = class
Public Class GrainTypeSharedContext
Inheritance
GrainTypeSharedContext

Constructors

GrainTypeSharedContext(GrainType, IClusterManifestProvider, GrainClassMap, PlacementStrategyResolver, IOptions<SiloMessagingOptions>, IOptions<GrainCollectionOptions>, IOptions<SchedulingOptions>, IGrainRuntime, ILogger, GrainReferenceActivator, IServiceProvider, SerializerSessionPool)
GrainTypeSharedContext(GrainType, IClusterManifestProvider, GrainClassMap, PlacementStrategyResolver, IOptions<SiloMessagingOptions>, IOptions<GrainCollectionOptions>, IOptions<SchedulingOptions>, IGrainRuntime, ILoggerFactory, GrainReferenceActivator, IServiceProvider, SerializerSessionPool)

Properties

CollectionAgeLimit

Gets the duration after which idle grains are eligible for collection.

GrainReferenceActivator

Gets the grain reference activator.

GrainTypeName

Gets the grain instance type name, if available.

Logger

Gets the logger.

MaxRequestProcessingTime

Gets the maximum amount of time we expect a request to continue processing before it is considered hung.

MaxWarningRequestProcessingTime

Gets the maximum amount of time we expect a request to continue processing before a warning may be logged.

MessagingOptions

Gets the silo messaging options.

PlacementStrategy

Gets the placement strategy used by grains of this type.

Runtime

Gets the grain runtime.

SchedulingOptions

Gets the scheduling options.

SerializerSessionPool

Gets the serializer session pool.

Methods

GetComponent<TComponent>()

Gets a component.

OnCreateActivation(IGrainContext)

Called on creation of an activation.

OnDestroyActivation(IGrainContext)

Called when an activation is disposed.

SetComponent<TComponent>(TComponent)

Registers a component.

Applies to