Пример #1
0
        public Form1()
        {
            InitializeComponent();
            serverData = new ConciliationServerData();
            TcpChannel channel = RemotingProtocol.StartRemotingService(ConciliationServerData.Instance.RemotingServerPort, typeof(RemotingService));

            CommunicationMQ.CrearQueue(CommunicationMQ.QueueConciliation);
            Control.CheckForIllegalCrossThreadCalls = false;
            this.WindowState = FormWindowState.Maximized;
        }
Пример #2
0
        static void Main(string[] args)
        {
            try
            {
                TcpChannel channel = RemotingProtocol.StartRemotingService(RemotingServerData.Instance.RemotingServerPort, typeof(RemotingService));
                Console.WriteLine("Remote server is running");
                Console.WriteLine("Creando cola MQ");
                CommunicationMQ.CrearQueue(CommunicationMQ.QueueComunicaciones);

                Console.ReadLine();
                RemotingProtocol.EndRemotingService(channel);
            }catch (Exception ex)
            {
                Console.WriteLine("Ocurrio un error");
            }
        }