* Move ScenarioState to Abstractions and add IScenarioStateStore interface
ScenarioState is moved to the Abstractions project so it can be referenced
by the new IScenarioStateStore interface. The interface defines the contract
for storing and retrieving scenario states, enabling distributed implementations.
* Add InMemoryScenarioStateStore default implementation
Wraps ConcurrentDictionary with OrdinalIgnoreCase comparer, preserving
exact current behavior. The Update method encapsulates read-modify-write
so distributed implementations can make it atomic.
* Wire IScenarioStateStore into middleware options, settings, and consumers
Replace direct ConcurrentDictionary<string, ScenarioState> usage with
IScenarioStateStore across all consumer files. The store is injectable
via WireMockServerSettings.ScenarioStateStore, defaulting to the
InMemoryScenarioStateStore for backward compatibility.
* Add FileBasedScenarioStateStore for persistent scenario state
In-memory ConcurrentDictionary backed by JSON file persistence in
__admin/scenarios/. Reads from cache, mutations write through to disk.
Constructor loads existing state from disk on startup.
* Make ScenarioStateStore non-nullable with default InMemoryScenarioStateStore
Move InMemoryScenarioStateStore from WireMock.Net.Minimal to
WireMock.Net.Shared so it lives alongside WireMockServerSettings.
This allows WireMockServerSettings.ScenarioStateStore to be
non-nullable with a default value, following the same pattern as
DefaultJsonSerializer. The null-coalescing fallback in
WireMockMiddlewareOptionsHelper is no longer needed.
* Update aspire to 13.1 (examples + code)
Allows usage of aspire CLI which is very useful for dev in codespaces (for my next PR).
* Add OTEL support
* Initial PR feedback
* PR feedback
* PR feedback
* PR feedback
* Cleanup.
* Cleanup
* Fix
* Fix
* Rename stuff around to be more accurate
* PR feedback
* Update WireMock.Net.OpenTelemetry.csproj
Update <Authors>
* PR feedback parser
* PR feedback package versions
* Status code feedback.
* Update preprocessor directives to to Activity Tracing instead of OpenTelemetry. Is more descriptive.
* Add tests
* Improve tests
---------
Co-authored-by: Stef Heyenrath <Stef.Heyenrath@gmail.com>
* UseFireAndForget
* ...
* delay
* async
* updated code accorsing to proposal
* Change nuget to package reference for WireMock.Net.Console.Net472.Classic, move the new FireAndForget into the main mapping, out of individual webhook mappings making it all or nothing, update tests, change Middleware to await or not the firing of all webhooks. Update models as needed. (#804)
Co-authored-by: Matt Philmon <Matt_Philmon@carmax.com>
* small update
* Tweak middleware and fix bug in example (#806)
Co-authored-by: Matt Philmon <Matt_Philmon@carmax.com>
* .ConfigureAwait(false)
Co-authored-by: mattisking <mattisking@gmail.com>
Co-authored-by: Matt Philmon <Matt_Philmon@carmax.com>