public void AddTestDataPartition(DateTime dttmPartition, Int64[] rgTickCount, string [] rgs) { AzLogEntries azles = new AzLogEntries(); for (int i = 0; i < rgTickCount.Length; i++) { Int64 nTickCount = rgTickCount[i]; string s = rgs == null ? "msg" : rgs[i]; AzLogEntry azle = AzLogEntry.Create(dttmPartition.ToString("yyyyMMddHH"), Guid.NewGuid(), nTickCount, "testdata", "Informational", 1, "2", 3, 4, s); m_azles.AddLogEntry(azle); } azles.UpdatePart(dttmPartition, dttmPartition.AddHours(1), AzLogParts.GrfDatasourceForIDatasource(1), AzLogPartState.Complete); }
/* A Z L O G M O D E L */ /*---------------------------------------------------------------------------- %%Function: AzLogModel %%Qualified: AzLog.AzLogModel.AzLogModel %%Contact: rlittle ----------------------------------------------------------------------------*/ public AzLogModel() { m_azles = new AzLogEntries(); m_plazlvListeners = new List<AzLogView>(); }
public void AddTestDataPartition(DateTime dttmPartition, Int64[] rgTickCount, string []rgs) { AzLogEntries azles = new AzLogEntries(); for (int i = 0; i < rgTickCount.Length; i++) { Int64 nTickCount = rgTickCount[i]; string s = rgs == null ? "msg" : rgs[i]; AzLogEntry azle = AzLogEntry.Create(dttmPartition.ToString("yyyyMMddHH"), Guid.NewGuid(), nTickCount, "testdata", "Informational", 1, "2", 3, 4, s); m_azles.AddLogEntry(azle); } azles.UpdatePart(dttmPartition, dttmPartition.AddHours(1), AzLogPartState.Complete); }
/* A Z L O G M O D E L */ /*---------------------------------------------------------------------------- * %%Function: AzLogModel * %%Qualified: AzLog.AzLogModel.AzLogModel * %%Contact: rlittle * * ----------------------------------------------------------------------------*/ public AzLogModel() { m_azles = new AzLogEntries(); m_plazlvListeners = new List <AzLogView>(); m_pliazldsSources = new List <IAzLogDatasource>(); }