SteamKit icon indicating copy to clipboard operation
SteamKit copied to clipboard

Use System.TimeProvider to control time

Open yaakov-h opened this issue 1 year ago • 2 comments

This PR introduces use of TimeProvider (hooray for net8.0) to control time.

This can be configured via SteamConfiguration and allows for time to be slowed, sped up, paused, skipped, etc. to make some functions easier to test.

yaakov-h avatar Sep 15 '24 01:09 yaakov-h

System.Threading.Tasks.Dataflow doesn't seem to support this just yet so I can't easily hook it in to callback timeouts. I think.

yaakov-h avatar Sep 15 '24 01:09 yaakov-h

System.Threading.Tasks.Dataflow doesn't seem to support this just yet

Is this for WaitForCallback( TimeSpan timeout )? Can it be worked around by testing WaitForCallbackAsync( CancellationToken cancellationToken = default ) instead?

xPaw avatar Nov 16 '24 17:11 xPaw