static void Main(string[] args)
        {
            var writer = Console.Out;
            var client = new CommonClient(writer);
            client.RunAsync("http://localhost:8080/").Wait();

            Console.ReadKey();
        }
Example #2
0
        static void Main(string[] args)
        {
            var writer = Console.Out;
            var client = new CommonClient(writer);

            client.RunAsync("http://localhost:8080/").Wait();

            Console.ReadKey();
        }
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            var writer = new TextBlockWriter(SynchronizationContext.Current, this.Messages);
            var client = new CommonClient(writer);

            // Windows Phone emulator runs in a separate virtual machine therefore you can't use a url containing localhost
            var task = client.RunAsync("http://signalr-test1.cloudapp.net:83/");

            // Sample code to localize the ApplicationBar
            //BuildLocalizedApplicationBar();
        }
 /// <summary>
 /// Invoked when this page is about to be displayed in a Frame.
 /// </summary>
 /// <param name="e">Event data that describes how this page was reached.  The Parameter
 /// property is typically used to configure the page.</param>
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     var writer = new TextBoxWriter(SynchronizationContext.Current, this.Messages);
     var client = new CommonClient(writer);
     var task = client.RunAsync("http://localhost:8080/");
 }