dependabot[bot] on nuget
Bump Verify.Xunit from 19.7.1 t… (compare)
Aaronontheweb on dev
[PORT #6366] set default PoolRo… (compare)
Aaronontheweb on nuget
Aaronontheweb on dev
Bump AkkaVersion from 1.4.48 to… (compare)
Aaronontheweb on v1.4
Fix ActorTelemetrySpecs pool ro… (compare)
Hi
Just getting deeper into Akka.net here and I want to use a router with ConsistentHashing but I'm missing a key step. This my understanding:
`
public class MyMessage : IConsistentHashable
{
public readonly string P1;
/* some other properties *
public MyMessage (string p1)
{
this.P1 = p1;
}
public object ConsistentHashKey
{
get
{
return this.P1;
}
}
}
public class ActorSystemSetup
{
public ActorSystemSetup() {
/* make some actors for the router here */
var actors = new string[] {/* list of actors */};
var mapping = new ConsistentHashMapping(/* something here that associates MyMessage.P1 with one of the actors */);
var props = Props.Empty.WithRouter(new ConsistentHashingGroup(actors).WithHashMapping(mapping));
actorSystem.ActorOf(props, "router-name");
}
}
`
So I'm possibly one line away from awesome. Can someone help me out?