static void Main(string[] args) { GlobalAttributes.RepositoryName = "RTDBInterface"; GlobalAttributes.Configuration = new ConfigurationBuilder().AddJsonFile("appsettings.json").Build(); AutofacModule.InitTest(); Console.WriteLine(RTDBHelper.GetDataByTagAndTime("HLU1_HLU1_FIC53101", DateTime.Now)); }
public ActionResult <DataSet> GetDataByTagAndTime(string tagName, string dateTime) { _log.Info($"开始取数据,位号:{tagName}, 时间:{DateTime.Now.ToLongTimeString()}"); DataSet ds = RTDBHelper.GetDataByTagAndTime(tagName, Convert.ToDateTime(dateTime)); _log.Info($"取数完成,时间:{DateTime.Now.ToLongTimeString()}"); return(ds); }
public void RTDBTest() { RTDBHelper.GetDataByTagAndTime("HLU1_HLU1_FIC53101", DateTime.Now); }