Table of Contents

Constructor InMemoryStorage

Namespace
Millrace.Storage.InMemory
Assembly
Millrace.dll

InMemoryStorage(TimeProvider?)

Creates an empty store.

public InMemoryStorage(TimeProvider? time = null)

Parameters

time TimeProvider

Remarks

time defaults to System. Every lease expiry, due check and claim in here reads through it and nothing reads the clock any other way — which is what lets a test advance an hour rather than wait one, and why the conformance suite can make time-travel assertions at all.