* 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>
Pass AllowedHandlebarsHelpers configuration to Handlebars.Net.Helpers so that optional handlebars helpers can be enabled.
Co-authored-by: Sam Latham <sam.latham@citrix.com>
* Add property UseHttp2 to WireMockServerArguments
* .
* additionalUrls
* ok?
* WireMockServerArguments
* fx
* AddProtoDefinition
* ...
* FIX
* Always add the lifecycle hook to support dynamic mappings and proto definitions
* Add WireMockHealthCheck
For use with Aspire, to make WaitFor(wiremock) more useful.
Calls /__admin/health and checks the result, as well as checks if mappings using AdminApiMappingBuilder has been submitted to the server.
This created a catch-22 problem where the mappings were not submitted until the health check was healthy, but the health check was not healthy until the mappings were submitted.
To avoid this, the WireMockServerLifecycleHook class has been slightly re-arranged, and is now using the AfterEndpointsAllocatedAsync callback rather than the AfterResourcesCreatedAsync callback. Within which a separate Task is created that waits until the server is ready and submits the mappings.
* Move WireMockMappingState to its own file
* Dispose the cancellation tokens in WireMockServerLifecycleHook