protected override void OnHeartbeat() { base.OnHeartbeat(); if (Position == null) { return; } if (Position.Value == int.MaxValue) { Position = null; } else { Position = new ConveyerPositionBuilder { Value = Position.Value + 1 } }; }
public void ResetPosition() { Position = new ConveyerPositionBuilder { Value = 0 }.Commit(); }