protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.Main); var textView = FindViewById<TextView>(Resource.Id.textView); var traceWriter = new TextViewWriter(SynchronizationContext.Current, textView); var client = new CommonClient(traceWriter); client.RunAsync("http://signalr-test1.cloudapp.net:82/"); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.Main); var textView = FindViewById <TextView>(Resource.Id.textView); var traceWriter = new TextViewWriter(SynchronizationContext.Current, textView); var client = new CommonClient(traceWriter); client.RunAsync("http://signalr-test1.cloudapp.net:83/"); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.Main); var textView = FindViewById<TextView>(Resource.Id.textView); if (SIGNALR_DEMO_SERVER == "http://YOUR-SERVER-INSTANCE-HERE") { textView.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 traceWriter = new TextViewWriter(SynchronizationContext.Current, textView); var client = new CommonClient(traceWriter); client.RunAsync(SIGNALR_DEMO_SERVER); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.Main); var textView = FindViewById <TextView>(Resource.Id.textView); if (SIGNALR_DEMO_SERVER == "http://YOUR-SERVER-INSTANCE-HERE") { textView.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 traceWriter = new TextViewWriter(SynchronizationContext.Current, textView); var client = new CommonClient(traceWriter); client.RunAsync(SIGNALR_DEMO_SERVER); }