Edit

Share via


GrainClient.ClientInvokeCallback Property

Definition

Global pre-call interceptor function Synchronous callback made just before a message is about to be constructed and sent by a client to a grain. This call will be made from the same thread that constructs the message to be sent, so any thread-local settings such as Orleans.RequestContext will be picked up. The action receives an InvokeMethodRequest with details of the method to be invoked, including InterfaceId and MethodId, and a IGrain which is the GrainReference this request is being sent through

public static Orleans.ClientInvokeCallback ClientInvokeCallback { get; set; }
static member ClientInvokeCallback : Orleans.ClientInvokeCallback with get, set
Public Shared Property ClientInvokeCallback As ClientInvokeCallback

Property Value

Remarks

This callback method should return promptly and do a minimum of work, to avoid blocking calling thread or impacting throughput.

Applies to