Particular / NServiceBus

Build, version, and monitor better microservices with the most powerful service platform for .NET
https://particular.net/nservicebus/
Other
2.09k stars 647 forks source link

Current Time Provider for Timeout Manager #3587

Open RobertoDelloglio opened 8 years ago

RobertoDelloglio commented 8 years ago

It would be useful to be able to customize the "currentTimeProvider" used by Timeout feature instead of relying on hard coded DateTime.UtcNow. In this way it would be possible to have full control about the "now" of the system. This feature could be used for integration test purpose (where we want to test time dependent rules) or to relying on a different time provider other than the local machine time.

danielmarbach commented 8 years ago

@RobertoDelloglio we have plans for the next release after V6 to revamp the timeout infrastructure. We will be considering your simulation needs when we address the timeout manager redesign. Thanks for your input.