public VariablesResponseType GetVariableInfo(String VariableParameter) { Stopwatch timer = System.Diagnostics.Stopwatch.StartNew(); GetVariablesOD obj = new GetVariablesOD(); //queryLog.InfoFormat("{0}|{1}|{2}|{3}|{4}|{5}|{6}|{7}", // System.Configuration.ConfigurationManager.AppSettings["network"], // network // "GetVariableInfo", // method // null, //locaiton // VariableParameter, //variable // null, // startdate // null, //enddate // String.Empty, // processing time // String.Empty // count // ); queryLog2.LogStart(Logging.Methods.GetVariables, VariableParameter, appContext.Request.UserHostName); VariablesResponseType resp = obj.GetVariableInfo(VariableParameter); queryLog2.LogEnd(Logging.Methods.GetVariables, VariableParameter, timer.ElapsedMilliseconds.ToString(), resp.variables.Length.ToString(), appContext.Request.UserHostName); // queryLog.InfoFormat("{0}|{1}|{2}|{3}|{4}|{5}|{6}|{7}", //System.Configuration.ConfigurationManager.AppSettings["network"], // network //"GetValues", // method //null, //locaiton //VariableParameter, //variable //null, // startdate //null, //enddate //timer.ElapsedMilliseconds, // processing time //resp.variables.Length // count //); return(resp); }
public VariablesResponseType GetVariableInfo(String VariableParameter) { Stopwatch timer = System.Diagnostics.Stopwatch.StartNew(); GetVariablesOD obj = new GetVariablesOD(); //queryLog.InfoFormat("{0}|{1}|{2}|{3}|{4}|{5}|{6}|{7}", // System.Configuration.ConfigurationManager.AppSettings["network"], // network // "GetVariableInfo", // method // null, //locaiton // VariableParameter, //variable // null, // startdate // null, //enddate // String.Empty, // processing time // String.Empty // count // ); queryLog2.LogStart(Logging.Methods.GetVariables, VariableParameter, appContext.Request.UserHostName); VariablesResponseType resp = obj.GetVariableInfo(VariableParameter); queryLog2.LogEnd(Logging.Methods.GetVariables, VariableParameter, timer.ElapsedMilliseconds.ToString(), resp.variables.Length.ToString(), appContext.Request.UserHostName); // queryLog.InfoFormat("{0}|{1}|{2}|{3}|{4}|{5}|{6}|{7}", //System.Configuration.ConfigurationManager.AppSettings["network"], // network //"GetValues", // method //null, //locaiton //VariableParameter, //variable //null, // startdate //null, //enddate //timer.ElapsedMilliseconds, // processing time //resp.variables.Length // count //); return resp; }