public SiteInfoResponseType GetSites(string[] locationIDs) { Stopwatch timer = System.Diagnostics.Stopwatch.StartNew(); queryLog2.LogStart(CustomLogging.Methods.GetSites, locationIDs.ToString(), appContext.Request.UserHostName); SiteInfoResponseType result = new SiteInfoResponseType(); result.site = WebServiceUtils.GetSitesFromDb(); //set query info result.queryInfo = CuahsiBuilder.CreateQueryInfoType("GetSites"); NoteType note = CuahsiBuilder.createNote("ALL Sites(empty request)"); result.queryInfo.note = CuahsiBuilder.addNote(null, note); queryLog2.LogEnd(CustomLogging.Methods.GetSites, locationIDs.ToString(), timer.ElapsedMilliseconds.ToString(), result.site.Length.ToString(), appContext.Request.UserHostName); return(result); }