mailbox.Defer ( unit -> unit )
that allows you to register a function which will be guaranteed to be invoked whenever an actor ends its lifecycle. It's stackable so you can register many of them.
Is this really the correct way to do this?
protected override void PreStart()
{
var producer = Context.System.GetExtension<DIExt>();
childActor = Context.ActorOf(producer.Props("MyActor"));
base.PreStart();
}
Why cant I do this?
protected override void PreStart()
{
var producer = Context.System.GetExtension<DIExt>();
childActor = Context.ActorOf(producer.Props<MyActor>());
base.PreStart();
}