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();
            }
        }
Ejemplo n.º 2
0
 public IEnumerable <MessageLog> TopLevelMessages()
 {
     return(_histories.Where(x => x.Parent == null).OrderBy(x => x.Timestamp));
 }
Ejemplo n.º 3
0
 public IEnumerable <Uri> ActiveTasks()
 {
     return(_agents.Where(x => x.IsActive).Select(x => x.Subject).ToArray());
 }