public void AddInitialMessages(Batch batch) { batch.Add(this); if (Stepthrough == null) { return; } if (Stepthrough.progress != null) batch.Add(Stepthrough.progress); batch.AddRange(Stepthrough.results.OfType<ClientMessage>()); if (Stepthrough.next != null) batch.Add(Stepthrough.next); }