示例#1
0
 protected override void Loaded(BehaviorLoadedEventArgs args)
 {
     if (!UseWaitingQueueOfParent)
     {
         args.TrackSubscription(ChildEnter.Subscribe(ProcessEnteringChild));
     }
     else
     {
         args.TrackSubscription(Update.Where(_ => !IsProcessing).Subscribe(_ => TakeCustomerFromQueueAndProcess()));
     }
 }
示例#2
0
 protected override void Loaded(BehaviorLoadedEventArgs args)
 {
     args.TrackSubscription(ChildEnter.Subscribe(OnChildEnter));
 }