Aaronontheweb on dev
[Cluster] Enable HeartbeatRespo… (compare)
I am trying to run the cluster sharding example. Since I cannot compile the akka project I pulled the ClusterSharding.Node out into a clean solution. Installed all the references via Nuget. I am getting an error in the following line:
public override string PersistenceId { get; } = Context.Parent.Path.Name + "/" + Context.Self.Path.Name;
The error is...
Akka.Persistence.UntypedPersistentActor.Context' is a 'property' but is used like a 'type'
What's missing?
var creditor = Context.ActorOf(PaymentCreditor.GetProps());
service.Ask(AccountCommands.GetIdentity(state.AccountId))
.PipeTo(creditor, success: m => PaymentProcessCommands.Credit(Id, m, state.Description, state.Amount));
akka {
actor {
guardian-supervisor-strategy = "UserSupervisorExample.UserSupervisorStrategy"
}
}
namespace UserSupervisorExample
{
public class UserSupervisorStrategy : SupervisorStrategyConfigurator
{
public UserSupervisorStrategy()
{
}
public override SupervisorStrategy Create()
{
return new OneForOneStrategy((excep) =>
{
int x = 3;
x = 6;
return Directive.Restart;
});
}
}
}
TargetParameterCountException