GrainClient.ClientInvokeCallback Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.