Share via


ReentrantAttribute 类

定义

Reentrant 属性用于标记允许在任务内进行请求交错的 grain 实现类。

这是一项高级功能,除非完全了解其含义,否则不应使用。 也就是说,允许请求交错允许运行时系统执行许多优化,这些优化可能会显著提高应用程序的性能。

[System.AttributeUsage(System.AttributeTargets.Class)]
public sealed class ReentrantAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class)]
public sealed class ReentrantAttribute : Attribute, Orleans.Metadata.IGrainPropertiesProviderAttribute
[<System.AttributeUsage(System.AttributeTargets.Class)>]
type ReentrantAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Class)>]
type ReentrantAttribute = class
    inherit Attribute
    interface IGrainPropertiesProviderAttribute
Public NotInheritable Class ReentrantAttribute
Inherits Attribute
Public NotInheritable Class ReentrantAttribute
Inherits Attribute
Implements IGrainPropertiesProviderAttribute
继承
ReentrantAttribute
属性
实现

构造函数

ReentrantAttribute()

Reentrant 属性用于标记允许在任务内进行请求交错的 grain 实现类。

这是一项高级功能,除非完全了解其含义,否则不应使用。 也就是说,允许请求交错允许运行时系统执行许多优化,这些优化可能会显著提高应用程序的性能。

方法

Populate(IServiceProvider, Type, GrainType, Dictionary<String,String>)

将 grain 属性添加到 properties

适用于