コード例 #1
0
 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));
 }
コード例 #2
0
        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);
        }
コード例 #3
0
 public void RTDBTest()
 {
     RTDBHelper.GetDataByTagAndTime("HLU1_HLU1_FIC53101", DateTime.Now);
 }