Beispiel #1
0
        static void Main(string[] args)
        {
            //var writer = Console.Out;
            //var client = new CommonClient(writer);
            //client.RunAsync("http://f:5000/").Wait();

            //Console.ReadKey();
            //CommonRH r = new CommonRH("http://ferias.mit.co.mz:5000/", "primaveraServer");
            CommonRH r = new CommonRH("http://localhost:5000/", "primaveraServer");

            try
            {
                while (1 == 1)
                {
                    
                    Console.ReadKey();
                }
                

                //IHubProxy stockTickerHubProxy = connection.CreateHubProxy("rhHub");
                //stockTickerHubProxy.On("UpdateStockPrice", stock => Console.WriteLine("Stock update for {0} new price {1}", stock.Symbol, stock.Price));
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                Console.ReadKey();
            }
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            //var writer = Console.Out;
            //var client = new CommonClient(writer);
            //client.RunAsync("http://f:5000/").Wait();

            //Console.ReadKey();
            //CommonRH r = new CommonRH("http://ferias.mit.co.mz:5000/", "primaveraServer");
            CommonRH r = new CommonRH("http://localhost:5000/", "primaveraServer");

            try
            {
                while (1 == 1)
                {
                    Console.ReadKey();
                }


                //IHubProxy stockTickerHubProxy = connection.CreateHubProxy("rhHub");
                //stockTickerHubProxy.On("UpdateStockPrice", stock => Console.WriteLine("Stock update for {0} new price {1}", stock.Symbol, stock.Price));
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                Console.ReadKey();
            }
        }