Ejemplo n.º 1
0
        public override void Init()
        {
            //TODO: this should not be here
            Address = new Address("akka", System.Name); //TODO: this should not work this way...
            Deployer = new RemoteDeployer(System.Settings);
            base.Init();

            var daemonMsgCreateSerializer = new DaemonMsgCreateSerializer(System);
            var messageContainerSerializer = new MessageContainerSerializer(System);
            System.Serialization.AddSerializer(daemonMsgCreateSerializer);
            System.Serialization.AddSerializationMap(typeof (DaemonMsgCreate), daemonMsgCreateSerializer);
            System.Serialization.AddSerializer(messageContainerSerializer);
            System.Serialization.AddSerializationMap(typeof (ActorSelectionMessage), messageContainerSerializer);

            RemoteDaemon = new RemoteDaemon(System, RootPath/"remote", null);
            Transport = new Remoting(System, this);
            RemoteSettings = new RemoteSettings(System.Settings.Config);
            Transport.Start();
            //      RemoteHost.StartHost(System, port);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// TBD
 /// </summary>
 /// <param name="remote">TBD</param>
 /// <returns>TBD</returns>
 public override Address LocalAddressForRemote(Address remote)
 {
     return(Remoting.LocalAddressForRemote(_transportMapping, remote));
 }