protected override void OnReceive(object message)
{
// Messages from bound actors
var responseMessage = message as ResponseMessage;
if (responseMessage != null)
{
OnResponseMessage(responseMessage);
return;
}
var notificationMessage = message as NotificationMessage;
if (notificationMessage != null)
{
OnNotificationMessage(notificationMessage);
return;
}
var terminated = message as Terminated;
if (terminated != null)
{
OnChildTerminate(terminated);
return;
}
base.OnReceive(message);
}