Aaronontheweb on dev
Singleton class and settings ba… (compare)
Aaronontheweb on dev
[SBR] Ignore reachability recor… (compare)
Invoke()
. so far so good. it is all working so far. i put this Invoke()
call inside a try catch block because i basically want to tell the sender if something happened to while calling the method and basically return the thrown exception as a message back to sender. but when the invoked method itself throws a TargetInvocationException
because of reasons it seems the actor just dies. and i get some disassociation messages in the log and stuff like that. it's like the try catch block inside the receive method is just not working. any hints?
---------------------------------------------------------------------
1) Building C:\CF\SourceCode\akka.net\src\Akka.sln failed with exitcode 1.
2) MSB4126: C:\CF\SourceCode\akka.net\src\Akka.sln.metaproj(0,0): The specified solution configuration "Release|MCD" is invalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank to use the default solution configuration.
---------------------------------------------------------------------
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;
});
}
}
}