protected override void DoExecute(CodeActivityContext context) { var alsoIncluded = AlsoIncludedAppointments.Get(context); devlog.DebugFormat("alsoIncluded.Length:'{0}'", alsoIncluded.Length); var newAppsList = new List <Models.ExchangeAppointmentDTO>(ExchangeRepository.New()); devlog.DebugFormat("newAppsList.Count:'{0}'", newAppsList.Count); newAppsList.AddRange(alsoIncluded); var newApps = newAppsList.ToArray(); devlog.DebugFormat("newApps.Length:'{0}'", newApps.Length); NewAppointments.Set(context, newApps); }