Editar

Compartilhar via


GrainTypeSharedContext Class

Definition

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

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

Constructors

Name Description
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)
GrainTypeSharedContext(GrainType, IClusterManifestProvider, GrainClassMap, PlacementStrategyResolver, IOptions<SiloMessagingOptions>, IOptions<GrainCollectionOptions>, IOptions<SchedulingOptions>, IOptions<StatelessWorkerOptions>, IGrainRuntime, ILoggerFactory, GrainReferenceActivator, IServiceProvider, SerializerSessionPool)

Properties

Name Description
CollectionAgeLimit

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

GrainDirectory

Gets the grain directory used by grains of this type, if this type uses a grain directory.

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.

StatelessWorkerOptions

Gets the stateless worker options.

Methods

Name Description
GetComponent(Type)

Gets a component.

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