ActorBase.OnPreActorMethodAsync(ActorMethodContext) Method
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.
Override this method for performing any actions prior to an actor method is invoked. This method is invoked by actor runtime just before invoking an actor method.
protected virtual System.Threading.Tasks.Task OnPreActorMethodAsync (Microsoft.ServiceFabric.Actors.Runtime.ActorMethodContext actorMethodContext);
abstract member OnPreActorMethodAsync : Microsoft.ServiceFabric.Actors.Runtime.ActorMethodContext -> System.Threading.Tasks.Task
override this.OnPreActorMethodAsync : Microsoft.ServiceFabric.Actors.Runtime.ActorMethodContext -> System.Threading.Tasks.Task
Protected Overridable Function OnPreActorMethodAsync (actorMethodContext As ActorMethodContext) As Task
Parameters
- actorMethodContext
- ActorMethodContext
An ActorMethodContext describing the method that will be invoked by actor runtime after this method finishes.
Returns
Returns a Task representing pre-actor-method operation.
Remarks
This method is invoked by actor runtime prior to:
- Invoking an actor interface method when a client request comes.
- Invoking a method on IRemindable interface when a reminder fires.
- Invoking a timer callback when timer fires.
Applies to
Azure SDK for .NET