Exemple #1
0
 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
         }
     };
 }
Exemple #2
0
 public void ResetPosition()
 {
     Position = new ConveyerPositionBuilder {
         Value = 0
     }.Commit();
 }