Aaronontheweb on 1.4.16
Aaronontheweb on master
Added v1.4.16 placeholder for n… typo (#4734) Allow different versions of MS … and 2 more (compare)
Aaronontheweb on 1.4.16
Aaronontheweb on dev
Added v1.4.16 release notes (#4… (compare)
Aaronontheweb on 1.4.16
Added v1.4.16 release notes ##… (compare)
dependabot-preview[bot] on nuget
Bump System.Configuration.Confi… (compare)
dependabot-preview[bot] on nuget
Bump NUnit from 3.7.1 to 3.13.0… (compare)
I think that any DI scope which effectively takes away lifecycle management from the ActorSystem, are not supported. Because it would mean that an Actor could be disposed without the Actor system being aware of it
Just wrap your ActorRef in something that implements IDisposable and kills the actor after being disposed
interface IDisposableActor<T> : IDisposable
{
ActorRef Actor{get;}
}
class DisposableActor<T> : IDisposableActor<T>
{
public ActorRef Actor {get; private set;}
public DisposableActor()
{
Actor = ActorSystem.ActorOf<T>();
}
public void Dispose()
{
Actor.Tell(oisonPill.Instance, ActorRef.NoSender);
}
}