IActorRuntime interface

Interface that exposes runtime methods for creating and executing actors.

public interface IActorRuntime : ICoyoteRuntime

Members

name description
event OnEventDropped Callback that is fired when an event is dropped.
CreateActor(…) Creates a new actor of the specified Type and with the specified optional Event. This event is given to the Event) method on the new actor. (3 methods)
CreateActorId(…) Creates a fresh actor id that has not yet been bound to any actor.
CreateActorIdFromName(…) Creates a actor id that is uniquely tied to the specified unique name. The returned actor id can either be a fresh id (not yet bound to any actor), or it can be bound to a previously created actor. In the second case, this actor id can be directly used to communicate with the corresponding actor.
GetCurrentEventGroup(…) Returns the current EventGroup of the actor with the specified id. Returns null if the id is not set, or if the ActorId is not associated with this runtime. During testing, the runtime asserts that the specified actor is currently executing.
RegisterLog(…) Use this method to register an IActorRuntimeLog.
RemoveLog(…) Use this method to unregister a previously registered IActorRuntimeLog.
SendEvent(…) Sends an asynchronous Event to an actor.

Remarks

See Programming model: asynchronous actors for more information.

See Also