static void Main(string[] args)
        {
            Console.WriteLine("servidor de Tickets activaso");
            TcpChanel tcpChanel = new TcpChanel(9998);

            ChanelServices.REgisterChanel(tcpChanel, false);
            Type commonInterfaceType = typeof(MovieTicket);

            RemotingConfiguration.RegisterWellKnownServiceType(commonInterfaceType, "MovieTicketBooking", WellKnownObjectMode.SingleCall);
            Console.WriteLine("Pulse Enter para salir");
            Console.ReadLine();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            TcpChanel Elcanal = new TcpChanel();

            ChanelService.RegisterChannel(Elcanal, false);
            Type ElTipo = typeof(IMovieTicket);

            IMovierTicker ElTicketRemoto = (IMOvieticket)Activaor.GetObject(ElTipo, "tcp://localhost:9998/MovieTicketBooking");

            ElTicketRemoto.GetTicketStatus("Ticket Nº: 556832");
            Console.WriteLine(Resultado);
            Console.ReadLine();
        }