Click or drag to resize
Akka.NETIMessageExtractor Interface
Interface of functions to extract entity id, shard id, and the message to send to the entity from an incoming message.

Namespace:  Akka.Cluster.Sharding
Assembly:  Akka.Cluster.Sharding (in Akka.Cluster.Sharding.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public interface IMessageExtractor

The IMessageExtractor type exposes the following members.

Methods
  NameDescription
Public methodEntityId
Extract the entity id from an incoming message. If is returned the message will be `unhandled`, i.e. posted as `Unhandled` messages on the event stream
Public methodEntityMessage
Extract the message to send to the entity from an incoming message. Note that the extracted message does not have to be the same as the incoming message to support wrapping in message envelope that is unwrapped before sending to the entity actor.
Public methodShardId
Extract the entity id from an incoming message. Only messages that passed the EntityId(Object) method will be used as input to this method.
Top
See Also