/// <inheritdoc /> protected override void Execute(CodeActivityContext context) { var service = ExchangeHelper.GetService(context.GetValue(OrganizerPassword), context.GetValue(ExchangeUrl), context.GetValue(OrganizerEmail)); var continueOnError = context.GetValue(ContinueOnError); var attendees = AppointmentHelper.ResolveAttendeeNames(service, context.GetValue(AttendeeNames), continueOnError); context.SetValue(Attendees, attendees.ToArray()); }
public void ResolveNamesTest() { var service = ExchangeHelper.GetService(ExchangePass, ExchangeServerUrl, ExchangeLogin); string[] testNames = { "Obfuscated attendee1", "Obfuscated attendee2" }; var attendees = AppointmentHelper.ResolveAttendeeNames(service, testNames, true); foreach (var item in attendees) { Console.WriteLine(item.Name + "::" + item.Address); } }