public async Task PlayAt(DateTime executionTime)
        {
            var outstanding = _outstandingJobs.Where(x => x.ExecutionTime <= executionTime).ToArray();

            foreach (var job in outstanding)
            {
                await _channel.Send(job.Envelope);

                job.Cancel();
            }
        }
Beispiel #2
0
 public IEnumerable <MessageLog> TopLevelMessages()
 {
     return(_histories.Where(x => x.Parent == null).OrderBy(x => x.Timestamp));
 }
 public IEnumerable <Uri> ActiveTasks()
 {
     return(_agents.Where(x => x.IsActive).Select(x => x.Subject).ToArray());
 }