In this constructor-system-nullable((system-datetimeoffset))-system-collections-generic-ienumerable((microsoft-durabletask-client-orchestrationruntimestatus)))), we have both CreatedFrom and CreatedTo nullable, however, when I create one with new PurgeInstancesFilter(null, createdTimeTo, runtimeStatus), and call PurgeAllInstancesAsync with the created option, I got an exception. I know I can avoid this by using DateTimeOffset.MinValue but I would expect null to be equivalent to MinValue.
Looking around, the following code looks suspicious to me:
In this constructor-system-nullable((system-datetimeoffset))-system-collections-generic-ienumerable((microsoft-durabletask-client-orchestrationruntimestatus)))), we have both
CreatedFrom
andCreatedTo
nullable, however, when I create one withnew PurgeInstancesFilter(null, createdTimeTo, runtimeStatus)
, and callPurgeAllInstancesAsync
with the created option, I got an exception. I know I can avoid this by usingDateTimeOffset.MinValue
but I would expectnull
to be equivalent toMinValue
.Looking around, the following code looks suspicious to me: