Esempio n. 1
0
            public TimeSeriesResponseType GetValues(string SiteNumber,
                                                    string Variable,
                                                    string StartDate,
                                                    string EndDate)
            {
                Stopwatch   timer = System.Diagnostics.Stopwatch.StartNew();
                GetValuesOD obj   = new GetValuesOD();

                // queryLog.Info("GetValues|" + SiteNumber + "|" + Variable + "|" + StartDate + "|" + EndDate);
                //String network,method,location, variable, start, end, , processing time,count
                queryLog2.LogValuesStart(Logging.Methods.GetValues, // method
                                         SiteNumber,                //locaiton
                                         Variable,                  //variable
                                         StartDate,                 // startdate

                                         EndDate,                   //enddate
                                         appContext.Request.UserHostName);

                TimeSeriesResponseType resp = obj.getValues(SiteNumber, Variable, StartDate, EndDate);

                queryLog2.LogValuesEnd(Logging.Methods.GetValues,
                                       SiteNumber,                                //locaiton
                                       Variable,                                  //variable
                                       StartDate,                                 // startdate
                                       EndDate,                                   //enddate
                                       timer.ElapsedMilliseconds,                 // processing time
                                                                                  // assume one for now
                                       resp.timeSeries[0].values[0].value.Length, // count
                                       appContext.Request.UserHostName);

                return(resp);
            }
            public TimeSeriesResponseType GetValues(string SiteNumber,
                                                    string Variable,
                                                    string StartDate,
                                                    string EndDate)
            {
                Stopwatch timer = System.Diagnostics.Stopwatch.StartNew();
                GetValuesOD obj = new GetValuesOD();
                // queryLog.Info("GetValues|" + SiteNumber + "|" + Variable + "|" + StartDate + "|" + EndDate);
                //String network,method,location, variable, start, end, , processing time,count
                queryLog2.LogValuesStart(Logging.Methods.GetValues, // method
                                 SiteNumber, //locaiton
                   Variable, //variable
                   StartDate, // startdate
                   EndDate, //enddate
                   appContext.Request.UserHostName);

                TimeSeriesResponseType resp = obj.getValues(SiteNumber, Variable, StartDate, EndDate);

                queryLog2.LogValuesEnd(Logging.Methods.GetValues,
                 SiteNumber, //locaiton
                   Variable, //variable
                   StartDate, // startdate
                   EndDate, //enddate
                   timer.ElapsedMilliseconds, // processing time
                    // assume one for now
                   resp.timeSeries[0].values[0].value.Length, // count
                    appContext.Request.UserHostName);

                return resp;
            }