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)); } }
/// <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); }
/// <summary> /// Sends the Chart Data to a target node /// </summary> /// <param name="pTarget"></param> public void SendChartData(TheDataBase pTarget) { MyDefaultChartsFactory?.SendChartData(pTarget); }