Hi, dear all. I am trying to write some task collector in C#. No matter, what i am trying to do, i am always receiving the tasks for the specific day or hour. In any way i cant receive the tasks from the specific date till now.
For example:
TaskFilterSpec vCenterTaskFilterSpec = new TaskFilterSpec();
TaskFilterSpecByTime vCenterTaskFilterSpecByTime = new TaskFilterSpecByTime();
vCenterTaskFilterSpecByTime.EndTime = DateTime.Now;
vCenterTaskFilterSpecByTime.BeginTime = DateTime.Now.AddHours(-24);
vCenterTaskFilterSpecByTime.TimeType = TaskFilterSpecTimeOption.startedTime;
This one return me only the tasks were exactly 24 hours ago. And i need from 24 ago till now.
Can you help me please?
----------------------------------------------------------
Thank you for your feedback regarding my response.
If it has successfully resolved your issue, kindly mark it as RESOLVED
Take a look at my blog below.
https://www.clouddepth.com