private void EnumerateSiteWebs(SPSite site) { foreach (SPWeb web in site.AllWebs) { using (web) { try { // check web CheckWeb(web); if (stopAtFirstHit && activationsFound > 0) { return; } } catch (Exception exc) { Log.Error( "Exception checking web: " + LocationManager.SafeGetWebFullUrl(web), exc ); } } } }