async void DrawNodes() { List <Node> alive = await HealthCheck.CheckHealth(Init.Peers); List <Node> dead = Init.Peers.Except(alive).ToList(); MarkerOptions moAlive = new MarkerOptions() { Icon = @"http://i.imgur.com/JPV3KXR.png", Clickable = true, DraggingEnabled = false, Flat = false, Optimized = true, RaiseOnDrag = true }; MarkerOptions moDead = new MarkerOptions() { Icon = @"http://i.imgur.com/WpTAa9N.png", Clickable = true, DraggingEnabled = false, Flat = false, Optimized = true, RaiseOnDrag = true }; foreach (Node pn in Init.Peers) { var Marker = Map.AddMarker(new GeographicLocation(pn.NodeLocation.lat, pn.NodeLocation.lon), (alive.Contains(pn) ? moAlive : moDead)); Marker.Click += (im, gl) => { KeySelection ks = new KeySelection(pn.GetLogs()); ks.ShowDialog(); Main m = new Main(pn, ks.Selection); m.Show(); }; } }
// GET: Health/Dependencies public ActionResult Index() { var hb = new HealthCheck(); var b = hb.CheckHealth(); return(View(b)); }
private static IUserStore <ApplicationUser> CreateUserStore() { var store = DependencyResolver.Current.GetService <IUserStore <ApplicationUser> >(); if (store != null) { return(store); } //ToDo add instrumentation and direct to healthcheck var hb = new HealthCheck(); hb.CheckHealth(); return(null); }