Inheritance: System.IO.TextWriter
        // Constructor
        public MainPage()
        {
            InitializeComponent();

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

            // Sample code to localize the ApplicationBar
            //BuildLocalizedApplicationBar();
        }
Exemple #2
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();

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

            client.RunAsync("http://signalr-test1.cloudapp.net:81/");

            // Sample code to localize the ApplicationBar
            //BuildLocalizedApplicationBar();
        }
Exemple #3
0
        // 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://signalr01.cloudapp.net:81/");

            // Sample code to localize the ApplicationBar
            //BuildLocalizedApplicationBar();
        }
        // 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://signalr01.cloudapp.net:81/");

            // Sample code to localize the ApplicationBar
            //BuildLocalizedApplicationBar();
        }
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            if (SIGNALR_DEMO_SERVER == "http://YOUR-SERVER-INSTANCE-HERE") {
                Messages2.Text = "You need to configure the app to point to your own SignalR Demo service.  Please see the Getting Started Guide for more information!";
                return;
            }
            

            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(SIGNALR_DEMO_SERVER);

            // Sample code to localize the ApplicationBar
            //BuildLocalizedApplicationBar();
        }
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            if (SIGNALR_DEMO_SERVER == "http://YOUR-SERVER-INSTANCE-HERE")
            {
                Messages2.Text = "You need to configure the app to point to your own SignalR Demo service.  Please see the Getting Started Guide for more information!";
                return;
            }


            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(SIGNALR_DEMO_SERVER);

            // Sample code to localize the ApplicationBar
            //BuildLocalizedApplicationBar();
        }