dependabot-preview[bot] on nuget
Bump System.Configuration.Confi… (compare)
dependabot-preview[bot] on nuget
Bump NUnit from 3.7.1 to 3.13.1… (compare)
Aaronontheweb on dev
Bump FsCheck.Xunit from 2.15.1 … (compare)
Aaronontheweb on nuget
...
// normal receive
message.Match()
.With<Shutdown>(shutdown =>{
var accounts = Context.GetChildren().Select(aref => aref.Path.Name.Contains("account")).ToArray();
foreach(var account in accounts) account.Tell(shutdown);
Become(WaitingForTermination(accounts.Length))
});
}
public Receive WaitingForTermination(int counter) {
var remaining = counter;
return message => message.Match()
.With<Terminated>(terminated => {
if(terminated.ActorRef.Path.Name.Contains("account"))
remaining--;
if(remaining == 0)
AllAccountsTerminated();
})
.WasHandled;
}