Constructor InMemoryMappingStore
- Namespace
- IntentSharp.Mapping
- Assembly
- IntentSharp.dll
InMemoryMappingStore(int)
Creates an empty store that holds at most capacity keys, with the system clock for the replacement cap's windows.
public InMemoryMappingStore(int capacity = 10000)
Parameters
capacityintThe most keys held; each key keeps every revision.
Exceptions
- ArgumentOutOfRangeException
capacityis less than 1.
InMemoryMappingStore(int, TimeProvider)
Creates an empty store that holds at most capacity keys, with timeProvider for the replacement cap's windows and the retirement times.
public InMemoryMappingStore(int capacity, TimeProvider timeProvider)
Parameters
capacityintThe most keys held; each key keeps every revision.
timeProviderTimeProviderThe clock.
Exceptions
- ArgumentOutOfRangeException
capacityis less than 1.- ArgumentNullException
timeProvideris null.