private InternalActorRef CreateNoRouter(ActorSystemImpl system, Props props, InternalActorRef supervisor, ActorPath path,
Deploy deploy, bool async)
{
if (props.Deploy != deploy)
{
props = props.WithDeploy(deploy);
}
var dispatcher = system.Dispatchers.FromConfig(props.Dispatcher);
var mailbox = _system.Mailboxes.CreateMailbox(props, null /*dispatcher.Configurator.Config*/);
//TODO: Should be: system.mailboxes.getMailboxType(props2, dispatcher.configurator.config)
if (async)
{
var reActorRef = new RepointableActorRef(system, props, dispatcher, () => mailbox, supervisor, path);
reActorRef.Initialize(async: true);
return(reActorRef);
}
return(new LocalActorRef(system, props, dispatcher, () => mailbox, supervisor, path));
}