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); }
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); }
/* U P D A T E P A R T */ /*---------------------------------------------------------------------------- * %%Function: UpdatePart * %%Qualified: AzLog.AzLogModel.UpdatePart * %%Contact: rlittle * * ----------------------------------------------------------------------------*/ public void UpdatePart(DateTime dttmMin, DateTime dttmMac, Int32 grfDatasource, AzLogPartState azlps) { m_azles.UpdatePart(dttmMin, dttmMac, grfDatasource, azlps); }