private void DumpBlock(byte[] bytes, int start, int length) { if (Status == DumpStatus.OK) { Status = Writer(bytes, start, length); } }
internal void SetDumpStatus(string bundleId, string dumpId, DumpStatus status, string errorMessage = null) { var dumpInfo = Get(bundleId, dumpId); dumpInfo.Status = status; if (!string.IsNullOrEmpty(errorMessage)) { dumpInfo.ErrorMessage = errorMessage; } if (status == DumpStatus.Finished || status == DumpStatus.Failed) { dumpInfo.Finished = DateTime.Now; } storage.Store(dumpInfo); }
public void SetDumpStatus(DumpIdentifier id, DumpStatus status, string errorMessage = null) { var dumpInfo = Get(id); dumpInfo.Status = status; dumpInfo.ErrorMessage = errorMessage; if (status == DumpStatus.Analyzing) { dumpInfo.Started = DateTime.Now; dumpInfo.Finished = DateTime.MinValue; } if (status == DumpStatus.Finished || status == DumpStatus.Failed) { dumpInfo.Finished = DateTime.Now; } storage.Store(dumpInfo); }
internal void SetDumpStatus(string bundleId, string dumpId, DumpStatus status, string errorMessage = null) { var dumpInfo = Get(bundleId, dumpId); dumpInfo.Status = status; dumpInfo.ErrorMessage = errorMessage; if (status == DumpStatus.Analyzing) { dumpInfo.Started = DateTime.Now; dumpInfo.Finished = DateTime.MinValue; } if (status == DumpStatus.Finished || status == DumpStatus.Failed) { dumpInfo.Finished = DateTime.Now; } storage.Store(dumpInfo); }
public Truck(int id) : base(id) { _tod = TypeOfDump.Dumptruck; _state = new DumpStatus(stateMachine.Dump.Truck); }
public Excavator(int id) : base(id) { _tod = TypeOfDump.Excavator; _state = new DumpStatus(stateMachine.Dump.Excavator); }