internal void ReceiveMessage(object message)
{
var wasHandled = _actor.AroundReceive(_state.GetCurrentBehavior(), message);
if (System.Settings.AddLoggingReceive && _actor is ILogReceive)
{
//TODO: akka alters the receive handler for logging, but the effect is the same. keep it this way?
Publish(new Debug(Self.Path.ToString(), _actor.GetType(),
"received " + (wasHandled ? "handled" : "unhandled") + " message " + message));
}
}