Example #1
0
 private void DumpBlock(byte[] bytes, int start, int length)
 {
     if (Status == DumpStatus.OK)
     {
         Status = Writer(bytes, start, length);
     }
 }
Example #2
0
        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);
        }
Example #3
0
        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);
        }
Example #4
0
        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);
        }
Example #5
0
 public Truck(int id)
     : base(id)
 {
     _tod   = TypeOfDump.Dumptruck;
     _state = new DumpStatus(stateMachine.Dump.Truck);
 }
Example #6
0
 public Excavator(int id)
     : base(id)
 {
     _tod   = TypeOfDump.Excavator;
     _state = new DumpStatus(stateMachine.Dump.Excavator);
 }