protected Repository(IZ21Client z21Client)
 {
     this.client = new Lazy <IZ21Client>(() => {
         z21Client.SetBroadcastFlags(new SetBroadcastFlagsRequest {
             BroadcastFlags = z21Client.BroadcastFlags | BroadcastFlags.DrivingAndSwitching
         });
         return(z21Client);
     }, false);
 }
 public TurnoutRepository(IZ21Client z21Client, ITurnoutInteractionHandler turnoutHandler) : base(z21Client)
 {
     subscription        = z21Client.TurnoutInformationChanged.Subscribe(x => Z21Client_LocomotiveInformationChanged(x));
     this.turnoutHandler = turnoutHandler;
 }
 public TrainRepository(IZ21Client z21Client) : base(z21Client)
 {
     subscription = z21Client.LocomotiveInformationChanged.Subscribe(x => Z21Client_LocomotiveInformationChanged(x));
 }
 public DigiKeijsInteractionHandler(IZ21Client z21Client)
 {
     this.z21Client = z21Client;
 }