async Task IHandle <DestroyEntity> .Handle(DestroyEntity message) { await AttachedObject.Tell(Disable.Default); AttachedObject.QueueOperation(() => { AttachedObject.Destroy(); return(Task.CompletedTask); }); }
Task IHandle <Disable> .Handle(Disable message) { AttachedObject.Destroy(); return(Task.CompletedTask); }