Esempio n. 1
0
        public SiteInfoResponseType GetSites(string[] locationIDs)
        {
            Stopwatch  timer = System.Diagnostics.Stopwatch.StartNew();
            GetSitesOD obj   = new GetSitesOD();

            string location = null;

            if (locationIDs != null)
            {
                location = locationIDs.ToString();
            }
            queryLog2.LogStart(Logging.Methods.GetSites, location,
                               appContext.Request.UserHostName);

            SiteInfoResponseType resp = obj.GetSites(locationIDs);

            queryLog2.LogEnd(Logging.Methods.GetSites,
                             locationIDs.ToString(),
                             timer.ElapsedMilliseconds.ToString(),
                             resp.site.Length.ToString(),
                             appContext.Request.UserHostName);

            return(resp);
        }
        public SiteInfoResponseType GetSites(string[] locationIDs)
        {
            Stopwatch timer = System.Diagnostics.Stopwatch.StartNew();
            GetSitesOD obj = new GetSitesOD();

            string location = null;
            if (locationIDs != null)
            {
                location = locationIDs.ToString();
            }
            queryLog2.LogStart(Logging.Methods.GetSites, location,
                appContext.Request.UserHostName);

            SiteInfoResponseType resp = obj.GetSites(locationIDs);

            queryLog2.LogEnd(Logging.Methods.GetSites,
                locationIDs.ToString(),
                timer.ElapsedMilliseconds.ToString(),
                resp.site.Length.ToString(),
                appContext.Request.UserHostName);

            return resp;
        }