These are chat archives for akkadotnet/akka.net
ActorRefs.Nobodyand create it if necessary
Receive<DeadLetter>(letter => letter.Recipient.Path.Parent.Name == Self.Path.Name, letter => /* logic */)if necessary, but I think collecting every single deadletter from event bus is not nice
// send message to entity through shard region region.Tell(new Envelope(shardId: 1, entityId: 1, message: "hello"))
region.Tell(new Envelope(shardId: 1, entityId: 1, message: "hello"))does - it sends message to actor identified by shard/entity, and if it doesn't exists, it creates it. Remember that if you need to use Scheduler, you can also schedule an
Actiondelegate, not only a message to be sent.
actorRef.Tell(new Request(replyTo: Self.Path.Name), Context.Parent)to actorRef responsible for emitting success message, and then from that actor
var path = Sender.Path; shardRegion.Tell(new Envelope(shardId: path.Parent.Name, entityId: path.Name, message: Success.Instance))
GetRouteesrequest, it will then respond with
Routeesmessage containing actor refs for all children. You may use Context.Watch on them.
Terminatemessage is not propagated from the router