Exemplo n.º 1
0
 public static T TriggeredBy <T>(this T command, RealtimeCommand triggerCommand)
     where T : RealtimeCommand
 {
     command.RecordTrigger(triggerCommand);
     return(command);
 }
Exemplo n.º 2
0
 public static DelayCommand Create(TimeSpan delay, RealtimeCommand command) => new DelayCommand(delay, command);
Exemplo n.º 3
0
 public void RecordTrigger(RealtimeCommand trigger)
 {
     TriggeredByMessage += $"{trigger.Name}:{trigger.Id}";
 }
Exemplo n.º 4
0
 private DelayCommand(TimeSpan delay, RealtimeCommand commandToQueue)
 {
     Delay          = delay;
     CommandToQueue = commandToQueue;
     CommandToQueue.TriggeredBy(this);
 }