This example shows one way to convert iCalendar appointment to a C# model and pass them to the Scheduler.
Key points of interest (comments in the code also offer some insights):
- Setup a Scheduler
- Create an appointment model class with the appropriate fields (see here)
- Use a service to read the ICS file and convert the data between
BEGIN:VEVENT
andEND:VEVENT
to the model- Parse the ICS format strings to extract the data so you can populate it in the appointment model
- Convert the dates to a suitable C# format
- Pass the data to the Scheduler