##C# / Soapi.CS
using Soapi.CS
//
[Test]
public void SiteMonitor()
{
Context.Options.LazyLoadingEnabled(true);
Context.Sites.ForEach(site=>
Console.WriteLine("{0} {1} {2} {3}",
site.Statistics.ApiVersion.Version, // stats lazy loaded
site.Statistics.ApiVersion.Revision,
site.State,
site.Name
/*, ad nauseum..*/));
}
//
Output:
LongRunning.SiteMonitor : Passed1.0 2010.8.13.1 Normal Stack Overflow 1.0 2010.8.13.1 Normal Server Fault 1.0 2010.8.13.1 Normal Super User 1.0 2010.8.13.1 Normal Meta Stack Overflow 1.0 2010.8.13.1 Open_Beta Web Apps 1.0 2010.8.13.1 Linked_Meta Web Apps Meta 1.0 2010.8.13.1 Open_Beta Gaming 1.0 2010.8.13.1 Linked_Meta Gaming Meta 1.0 2010.8.13.1 Open_Beta Webmasters 1.0 2010.8.13.1 Linked_Meta Webmasters Meta 1.0 2010.8.13.1 Open_Beta Cooking 1.0 2010.8.13.1 Linked_Meta Cooking Meta 1.0 2010.8.13.1 Open_Beta Game Developers 1.0 2010.8.13.1 Linked_Meta Game Developers Meta 1.0 2010.8.13.1 Open_Beta Electronic Gadgets 1.0 2010.8.13.1 Linked_Meta Electronic Gadgets Meta 1.0 2010.8.13.1 Open_Beta Photography 1.0 2010.8.13.1 Linked_Meta Photography Meta 1.0 2010.8.13.1 Open_Beta Statistical Analysis 1.0 2010.8.13.1 Linked_Meta Statistical Analysis Meta 1.0 2010.8.13.1 Open_Beta Mathematics 1.0 2010.8.13.1 Linked_Meta Mathematics Meta 1.0 2010.8.13.1 Open_Beta Home Improvement 1.0 2010.8.13.1 Linked_Meta Home Improvement Meta 1.0 2010.8.13.1 Linked_Meta Meta Super User 1.0 2010.8.13.1 Linked_Meta Meta Server Fault 1.0 2010.8.13.1 Open_Beta GIS 1.0 2010.8.13.1 Linked_Meta GIS Meta 1.0 2010.8.13.1 Open_Beta TeX - LaTeX 1.0 2010.8.13.1 Linked_Meta TeX - LaTeX Meta 1.0 2010.8.13.1 Open_Beta Ubuntu 1.0 2010.8.13.1 Linked_Meta Ubuntu Meta 1.0 2010.8.13.1 Closed_Beta Personal Finance and Money 1.0 2010.8.13.1 Linked_Meta Personal Finance and Money Meta 1.0 2010.8.13.1 Closed_Beta English Language and Usage 1.0 2010.8.13.1 Linked_Meta English Language and Usage Meta 1.0 2010.8.13.1 Normal Stack Apps