internal RemotingMessageSender(Uri serviceUri)
        {
            var tcpChannel = new TcpChannel();
            ChannelServices.RegisterChannel(tcpChannel, false);

            var address = string.Format("tcp://{0}:{1}/OrderHandler", serviceUri.Host, serviceUri.Port);
            proxy = (RemotingOrderHandler)Activator.GetObject(typeof(RemotingOrderHandler), address);
        }
Exemplo n.º 2
0
        internal RemotingMessageSender(Uri serviceUri)
        {
            var tcpChannel = new TcpChannel();

            ChannelServices.RegisterChannel(tcpChannel, false);

            var address = string.Format("tcp://{0}:{1}/OrderHandler", serviceUri.Host, serviceUri.Port);

            proxy = (RemotingOrderHandler)Activator.GetObject(typeof(RemotingOrderHandler), address);
        }