I am writing a service, but I want to have configuration settings to make sure that the service does not start for a certain time on one day of the week. for example, from Monday from 17:00 to 19:00.
Is it possible to create a date-time representing any Monday, so I can have one application key for DontProcessStartTime and one for DontProcessEndTime with values such as "Monday 17:00" and "Monday 19:00"?
Otherwise, I assume that for the beginning and end of the time window I will have to have separate keys for the day and time.
Any thoughts?
thank
source
share