예제 #1
0
        public SupervisorActor(Inbox inbox, ActorExceptionHandler handler,
                               Action<ActorRef, ActorRestartLimitReached> restartLimitReachedHandler)
        {
            _inbox = inbox;
            inbox.SetExceptionHandler(handler);

            inbox.Receive<ActorRestartLimitReached>(msg => restartLimitReachedHandler(inbox, msg));
        }
예제 #2
0
        public SupervisorActor(Inbox inbox, ActorExceptionHandler handler,
                               Action <ActorRef, ActorRestartLimitReached> restartLimitReachedHandler)
        {
            _inbox = inbox;
            inbox.SetExceptionHandler(handler);

            inbox.Receive <ActorRestartLimitReached>(msg => restartLimitReachedHandler(inbox, msg));
        }
예제 #3
0
 public void SetExceptionHandler(ActorExceptionHandler handler)
 {
     _inbox.SetExceptionHandler(handler);
 }