OneWayAttribute 类

定义

指示 grain 接口上的方法是单向的,并且不会向调用方发送响应消息。

[System.AttributeUsage(System.AttributeTargets.Method)]
public sealed class OneWayAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Method)]
[Orleans.InvokableCustomInitializer("AddInvokeMethodOptions", Orleans.CodeGeneration.InvokeMethodOptions.OneWay)]
public sealed class OneWayAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Method)>]
type OneWayAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Method)>]
[<Orleans.InvokableCustomInitializer("AddInvokeMethodOptions", Orleans.CodeGeneration.InvokeMethodOptions.OneWay)>]
type OneWayAttribute = class
    inherit Attribute
Public NotInheritable Class OneWayAttribute
Inherits Attribute
继承
OneWayAttribute
属性

构造函数

OneWayAttribute()

指示 grain 接口上的方法是单向的,并且不会向调用方发送响应消息。

适用于