示例#1
0
        public void SendChartData(TheDataBase pTarget)
        {
            string tStr = SerializeChart2JSON();

            if (pTarget.cdeN == Guid.Empty)
            {
                TheCommCore.PublishCentral(new TSM("CDMyC3.TheC3Service", $"CHART_MODEL:{pTarget.cdeMID}", tStr));
            }
            else
            {
                TheCommCore.PublishToNode(pTarget.cdeN, new TSM("CDMyC3.TheC3Service", $"CHART_MODEL:{pTarget.cdeMID}", tStr));
            }
        }
示例#2
0
        /// <summary>
        /// Stores the values of a class in the StorageServer
        /// </summary>
        /// <typeparam name="T">Type of the class to be stored</typeparam>
        /// <param name="pMyValue">Class with values to be stored</param>
        public void EdgeDataStoreOnly <T>(T pMyValue, string pTableName)
        {
            Dictionary <string, T> ToWriteOnly = new Dictionary <string, T>();
            TheDataBase            tDB         = pMyValue as TheDataBase;

            if (tDB != null)
            {
                tDB.cdeMID = Guid.NewGuid();
            }
            ToWriteOnly.Add(Guid.Empty.ToString(), pMyValue);
            eSCMD Cmd = eSCMD.Insert;

            EdgeDataStore(ToWriteOnly, Cmd, "", null, pTableName);
        }
示例#3
0
 /// <summary>
 /// Sends the Chart Data to a target node
 /// </summary>
 /// <param name="pTarget"></param>
 public void SendChartData(TheDataBase pTarget)
 {
     MyDefaultChartsFactory?.SendChartData(pTarget);
 }