Skip to content

2.7.0

Compare
Choose a tag to compare
@yevhen yevhen released this 21 Dec 12:52
· 138 commits to master since this release

New features

  • Actor grain lifecycle message were made serializable and moved to Orleankka core, so now it's possible to activate/deactivate any actor externally. Extensions methods were created for ActorRef and you can simply do system.ActorOf<IMyActor>("foo").Activate(). Note: activation is idempotent.
  • Behaviors: Become message was extended with Become<TArg> so now you can pass additional arguments to behavior:
behavior.Become(Failed, ex);

Task<object> Failed(object message)
{
    switch (message)
    {
        case Become<Exception> x: 
            log.Error(x.Argument);
            break;
    }
}