Orleans.Runtime 命名空间

ActivationCountBasedPlacement

一种放置策略,该策略尝试根据每个服务器上最近处于活动状态的粒度数实现大致均匀的负载。

ActivationIdConverter

用于将实例与实例的 JSON 表示形式进行转换和转换 ActivationId 的功能。

AsyncEnumerableExtensions
AsyncEnumerableRequest<T>

表示对 IAsyncEnumerable<T>返回方法的请求。

AsyncPipeline

一个帮助程序实用工具类,用于控制异步活动的生成速率。 将异步操作管道维护到给定的最大容量,如果管道在排队操作未完成之前变得太深,则阻止调用线程。 有效地向调用方增加背压。 这主要用于在受控负载下对粒度进行压力测试,绝不应在 grain 代码中使用!

AttributeGrainInterfaceTypeProvider

GrainInterfaceType从实现 IGrainInterfaceTypeProviderAttribute的属性中获取 。

ClientInstruments
ClientNotAvailableException

指示客户端不再可访问。

ClusterManifestUpdate

表示对群集清单的更新。

ClusterMember

表示群集成员。

ClusterMembershipSnapshot

表示群集成员身份快照。

ClusterMembershipUpdate

表示群集成员身份快照和上一个快照的更改。

ConsoleTelemetryConsumer
CrashUtils

管理日志接收器

DeadlockException

表示 silo 在调用图中检测到死锁/循环。

DefaultGrainActivator

默认 IGrainActivator 实现。

DetailedGrainStatistic
EnumerationAbortedException

指示枚举已中止。

FileTelemetryConsumer
FloatValueStatistic
GatewayTooBusyException

表示网关接收器当前处于重载/负载下降状态,当前无法接受发送的此消息。

GrainAddress

表示 中的条目 IGrainDirectory

GrainAddressCacheUpdate

表示一个指令,用于更新缓存 GrainAddress 到有效 GrainAddress的无效 。

GrainConstructorArgumentFactory

使用构造函数依赖项注入构造 grain 类的实例。

GrainContextActivator

用于创建粒度上下文的中心点。

GrainContextExtensions

IGrainContext扩展。

GrainExtensionNotInstalledException

表示尝试在未安装该扩展的 grain 上调用 grain 扩展方法。

GrainIdJsonConverter

用于将 GrainId 转换为 JSON 字符串和从 JSON 字符串转换的功能。

GrainIdKeyExtensions

密钥的 GrainId 扩展。

GrainInterfaceTypeAttribute

当应用于 grain 接口时,指定 GrainInterfaceType

GrainLifecycleStage

grains 生命周期的阶段。 TODO:稍后添加更多内容,请参阅 ActivationInitializationStage 完整 grain 生命周期,包括寄存器、状态设置和流清理,最终应由 grain 生命周期触发。

GrainReference

这是所有 grain 引用的基类。

GrainReferenceExtensions
GrainReferenceNotBoundException

指示 GrainReference 在使用之前未绑定到运行时。

GrainReferenceShared

与 具有相同 GrainTypeGrainInterfaceType的实例共有GrainReference的属性。

GrainService

用于实现类似 grain 的分区服务的基类,其每个 silo 实例由 silo 运行时自动实例化和启动

GrainTypePrefix

GrainType前缀和相应的帮助程序方法。

GrainTypeSharedContext

在 grain 类型的所有实例之间共享的功能。

GrainTypeSharedContextResolver

解析给定粒度类型的所有实例共有的组件。

GuidId

基于 的唯一 Guid标识符。

HashBasedPlacement

Places兼容接收器上的激活,方法是使用稳定哈希对粒度标识符进行哈希处理,并使用取模运算从排序集中选择接收器。

IdSpanCodec

用于序列化和反序列化 IdSpan 实例的功能。

Instruments
KeyedService<TKey,TService>

表示由密钥标识的服务。

KeyedService<TKey,TService,TInstance>

表示由密钥标识的服务。

KeyedServiceCollection<TKey,TService>

表示具有给定键类型的服务的集合。

KeyedServiceCollectionExtensions

使用 的IServiceProviderIKeyedServiceCollection<TKey,TService>扩展方法。

KeyedServiceExtensions

使用密钥服务的扩展。

KeyedSingletonService<TKey,TService>

表示由密钥标识的单一实例服务。

KeyedSingletonService<TKey,TService,TInstance>

表示单一实例键服务。

LegacyGrainId
LifecycleParticipantExtensions

ILifecycleParticipant<TLifecycleObservable>扩展。

LimitExceededException

表示 grain 处于重载状态,其中当前超出了某些运行时限制设置,因此 grain 当前无法接受正在发送的消息。

LogFormatter

为记录目的设置值的格式。

Logger

用于日志记录服务的 Orleans 运行时的接口。

LoggerExtensionMethods
LoggerExtensions
LoggingUtils

日志记录实用工具

LogManager

管理日志接收器

MembershipVersionConverter

用于将实例转换为 JSON 和从 JSON 转换 MembershipVersion 实例的功能。

Metric
OnDeserializedCallbacks

帮助程序类,用于在反序列化后立即对实现 IOnDeserialized的对象调用OnDeserialized(DeserializationContext)

OrleansConfigurationException

表示配置异常。

OrleansException

Orleans 运行时用于报告错误的异常类。

OrleansLifecycleCanceledException

指示生命周期已因请求或由于观察程序错误而取消。

OrleansLoggerExtension

保留旧版 orleans 日志方法样式的扩展方法

OrleansMessageRejectionException

指示已拒绝 Orleans 消息。

PersistentStateAttribute

指定其应用于的 IPersistentState<TState> 构造函数参数的选项。

PersistentStateFactory

IPersistentState<TState>为 grain 创建实例。

PlacementStrategy

所有放置策略的基类型。

PreferLocalPlacement

首选本地放置策略指示,如果 grain 尚未在群集中的其他位置处于活动状态,并且本地主机与其兼容,则应始终将 grain 放置在本地主机上。

RandomPlacement

随机放置策略指定 grain 的新激活应放置在随机、兼容的服务器上。

RangeFactory

用于创建 IRingRange 值的实用工具类。

ReminderException

与 Orleans 提醒函数或提醒服务相关的异常。

Request

返回 ValueTask的方法的请求的基类。

Request<TResult>

返回 ValueTask<TResult>的方法的请求的基类。

RequestBase

用于方法请求的基类型。

RequestContext

此类保存有关当前正在处理的请求的信息。 它明确用于应用程序代码。

RequestContextExtensions

使用 RequestContext的扩展。

ResourceOptimizedPlacement

一种放置策略,用于优化整个群集中的资源分布。

Silo

Orleans silo。

SiloAddress

封装 silo 地址详细信息的数据类。

SiloAddressConverter

用于将实例与其 JSON 表示形式进行转换和转换 SiloAddress 的功能。

SiloLifecycleSubject

silo 生命周期主题的修饰器。 添加一些日志记录和监视

SiloRoleBasedPlacement

silo 角色放置策略指定粒度应放置在具有由策略的放置属性指定的角色的兼容 silo 上。

SiloRuntimeMetricsListener
SiloRuntimeStatistics

Silo 的当前运行时统计信息的快照

SiloStatusExtensions

SiloStatus扩展。

SiloUnavailableException

表示由于目标接收器不可用而取消了请求。

SiloUnobservedExceptionsHandlerServiceProviderExtensions
SimpleGrainStatistic

给定接收器上给定粒度类型的当前统计信息的简单快照。

StatisticName
StatisticNameFormat
StatisticNames
SystemTarget

各种系统服务的基类,例如 grain 目录、提醒服务等。公开供 GrainService 继承自它。 可以在重构后转换为内部,这将删除继承关系。

SystemTargetExtensions

SystemTarget扩展。

SystemTargetPlacementStrategy

系统目标使用的放置策略。

TaskRequest

返回 ValueTask的方法的请求的基类。

TaskRequest<TResult>

返回 Task<TResult>的方法的请求的基类。

TelemetryManager
TraceLogger

支持与记录器管理 api 的旧 TraceManager 向后兼容

TraceTelemetryConsumer
TypeFormattingOptions

用于设置类型名称格式的选项。

UniqueKey
Utils

Utils 类包含用于应用程序和 grain 代码的各种实用工具方法。

VoidRequest

返回 void 的方法的请求的基类。

WrappedException

Orleans 运行时用于报告错误的异常类。

结构

ActivationId

唯一标识粒度激活。

GenericGrainInterfaceType

表示 GrainInterfaceType 使用类型参数进行参数化的 。

GenericGrainType

表示 GrainType 使用类型参数进行参数化的 。

GrainId

标识粒度。

GrainInterfaceType

唯一标识 grain 接口。

GrainType

表示粒度的类型。

IdSpan

标识的基元类型,表示字节序列。

IndirectProbeResponse

表示通过中间节点探测节点的结果。

MembershipVersion

标识群集成员身份配置的版本。

QualifiedStreamId
RequestContext.ReentrancySection
StreamId

标识提供程序中的Stream

SystemTargetGrainId

标识系统目标。

TickStatus

当刻度线传递到注册机构粒度时,刻度线的状态。 如果发生故障,可能会出现未按时交付计时周期的情况。 应用可以注意到此类错过的滴答声,如下所示。 收到计时周期后,应用可以计算自提醒开始以来的理论刻度数,如:curCount = (Now - FirstTickTime) /Period 应用可以跟踪它为“count”。 收到计时周期后,错过的刻度数 = curCount - count - 1 此后,应用可以设置 count = curCount

接口

IActivationWorkingSet

管理最近活动的 IGrainContext 实例集。

IActivationWorkingSetMember

表示从 的角度 IActivationWorkingSet的激活。

IActivationWorkingSetObserver

观察 IActivationWorkingSet 者。

IAddressable

可寻址终结点的标记接口,例如 grain、观察程序和其他系统内部可寻址终结点

IAsyncEnumerableGrainExtension

从 grain 方法返回 IAsyncEnumerable<T> 的 grain 的 Grain 扩展接口。

IAsyncEnumerableRequest<T>

返回方法的请求 IAsyncEnumerable<T>的接口。

IAttributeToFactoryMapper<TMetadata>

负责将分面元数据映射到可缓存工厂。

IClientMetricsDataPublisher
IClientPerformanceMetrics

一小部分每个 Orleans 客户端的重要关键性能指标。

ICloseableLogConsumer

当还支持 Close 函数时,用于使用日志条目的接口。

IClusterManifestProvider

提供对群集清单的访问。

IClusterMembershipService

用于查询群集成员身份并与之交互的功能。

IConfigurableClientMetricsDataPublisher
IConfigurableSiloMetricsDataPublisher
IConfigurableStatisticsPublisher
IConfigureGrainContext

配置提供的 grain 上下文。

IConfigureGrainContextProvider

IConfigureGrainContext为提供的 grain 类型提供 实例。

IConfigureGrainTypeComponents

配置共享组件,这些组件对于给定粒度类型的所有实例都是通用的。

ICorePerformanceMetrics
ICounter

详细的统计信息计数器。 通常是在故障排除方案中使用的低级别性能统计信息。

IDehydrationContext

记录正在为迁移到另一个位置而解除冻结的粒度激活状态。

IDependencyTelemetryConsumer
IEventTelemetryConsumer
IExceptionTelemetryConsumer
IFatalErrorHandler

用于控制如何处理严重错误 (的接口,例如声明为已失效的 silo) 。

IFlushableLogConsumer

当也支持 Flush 函数时,用于使用日志条目的接口。

IGrainActivationContext

与当前粒度激活关联的上下文。

IGrainActivator

为给定的 grain 上下文创建 grain 实例。

IGrainContext

从运行时的角度表示粒度。

IGrainContextAccessor

提供对当前正在执行的 grain 上下文的访问。

IGrainContextActivator

为给定的 grain 地址创建 grain 上下文。

IGrainContextActivatorProvider

IGrainContextActivator为指定的粒度类型提供 。

IGrainExtension

grain 扩展的标记接口,由内部运行时扩展终结点使用。

IGrainExtensionBinder

用于访问或安装 grain 上的扩展的功能。

IGrainInterfaceTypeProvider

GrainInterfaceType获取接口的 。

IGrainInterfaceTypeProviderAttribute

Attribute实现此 的 指定GrainInterfaceType它所附加到的 类型的 。

IGrainLifecycle

可观测的 grain 生命周期。

IGrainMigrationParticipant
IGrainReferenceConverter
IGrainReferenceRuntime

的运行时逻辑 GrainReference可供使用。 此服务不应由用户代码直接使用。

IGrainReminder

持久提醒的句柄。

IGrainRuntime

到 Orleans 运行时的 网关 GrainGrain应仅通过此接口与运行时交互。

IGrainServiceFactory

用于与 grain 服务交互的功能。

IHealthCheckable

可探测运行状况的服务的接口。

IHealthCheckParticipant

运行状况检查参与者的接口

IKeyedService<TKey,TService>

表示由键标识的服务。

IKeyedServiceCollection<TKey,TService>

可通过键消除歧义的服务集合

ILocalSiloDetails

本地 silo 的详细信息。

ILogConsumer

用于使用日志条目的接口。

IManagementGrain

接收器系统管理功能的接口,公开为用于接收远程请求/命令的 grain。

IMembershipOracle

群集成员身份的权威源。

IMetricTelemetryConsumer
IMultiClusterGossipData
IMultiClusterGossipService
IPersistentState<TState>

提供对 grain 状态的访问,并提供保存、清除和刷新状态的功能。

IPersistentStateConfiguration

持久状态的配置。

IPersistentStateFactory

用于构造 IPersistentState<TState> grain 实例的工厂。

IPipeline

一个实用工具接口,用于控制异步活动的生成速率。

IRehydrationContext

包含从另一个位置移动后正在解除冻结的粒度激活状态。

IRequest

表示对 grain 调用方法的请求。

IRequestTelemetryConsumer
IRingRange

表示虚拟环周围的一个范围或一组范围,其中环上的点使用 UInt32 值标识。

ISiloLifecycle

可观测的 silo 生命周期。

ISiloLifecycleSubject

可观测接收器生命周期和观察程序。

ISiloMetricsDataPublisher
ISiloPerformanceMetrics

一小部分每个接收器的重要关键性能指标

ISiloStatusListener

侦听 silo 状态更改通知的类型接口。

ISiloStatusOracle

有关其他 silo 状态的信息的权威本地每个接收器源。

ISingleRange

表示虚拟环的单个连续范围,其中环上的点是使用 UInt32 值标识的。

IStartupTask

定义在 silo 启动后要执行的操作。

IStatisticsManager
IStatisticsPublisher
ITelemetryConsumer

所有遥测使用者的标记接口

ITelemetryProducer

表示用于生成遥测数据的对象

ITraceTelemetryConsumer
ITypeResolver

提供用于从字符串解析 Type 的方法。

IWorkItemScheduler

在粒度上计划任务的功能。

枚举

CounterStorage
EnumerationResult

标识枚举结果。

GrainService.GrainServiceStatus

grain 服务的可能状态

LoggerType

ILogConsumer 区分四类日志:

说明
运行时由 Orleans 运行时本身编写的日志。 应用程序代码不应使用此类别。
Grain由应用程序粒度编写的日志。 此类别应由在 silo 中作为 Orleans 粒度运行的代码使用。
应用程序客户端应用程序编写的日志。 客户端应用程序代码应使用此类别。
提供程序提供程序编写的日志。 提供程序代码应使用此类别。
Severity

日志消息的严重性级别。

Silo.SiloType

Silo 类型。

SiloStatus

silo 的可能状态。

UniqueKey.Category

编码为 UniqueKeys 的类型 ID 值