public RoutedActorRef(ActorSystemImpl system, Props routerProps, MessageDispatcher routerDispatcher,
Func<Mailbox> createMailbox, Props routeeProps, IInternalActorRef supervisor, ActorPath path)
: base(system, routerProps, routerDispatcher, createMailbox, supervisor, path)
{
_system = system;
_routerProps = routerProps;
_routerDispatcher = routerDispatcher;
_createMailbox = createMailbox;
_routeeProps = routeeProps;
_supervisor = supervisor;
//TODO: Implement:
// // verify that a BalancingDispatcher is not used with a Router
// if (!(routerProps.RouterConfig is NoRouter) && routerDispatcher is BalancingDispatcher)
// {
// throw new ConfigurationException("Configuration for " + this +
// " is invalid - you can not use a 'BalancingDispatcher' as a Router's dispatcher, you can however use it for the routees.");
// }
// routerProps.RouterConfig.VerifyConfig(path);
}