Upgrade to 0.2.0-preview2 + add guard/tracing/async/pooling samples#15
Merged
Conversation
Bump DesignPatternsPackageVersion from 0.1.0-preview6 to 0.2.0-preview2. New feature demonstrations across 5 samples: Strategy: - Guard predicate on AlipayPayment ([RegisterStrategy(Guard=)]) - TryGetWithGuard runtime resolution - ExecuteTracedAsync with StrategyExecutionTrace (status, timing) - KeyNotFound trace for missing keys Chain: - InvokeTracedAsync with per-step status display - Exception observability: ThrowingHandler + IHandlerExceptionObserver - Failed status captured in trace before re-throw Factory: - Async factory registry (IAsyncFactoryRegistry + CreateAsync) - Pooled factory registry (IPooledFactoryRegistry with RentAsync/Return) - PooledBuffer product implementing IResettable State: - Entry/exit actions on [Transition] (OnEnter/OnExit attributes) - IStateMachine instance wrapper with CurrentState tracking - TryTransitionAsync firing entry/exit actions - TryTransitionTracedAsync with TransitionTrace observability EventAggregator: - Error isolation via ContinueOnError on PublishTracedAsync - FailingHandler demonstrating exception capture - EventPublicationTrace with HasFailures and per-step status README updated to reflect new sample capabilities. Full solution builds clean (dotnet build DesignPatterns.Samples.slnx -c Release).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Bump
DesignPatternsPackageVersionfrom0.1.0-preview6to0.2.0-preview2and add new feature demonstrations across 5 samples to cover the 0.2.0-preview1/2 feature set.Strategy
AlipayPayment([RegisterStrategy(Guard=)])TryGetWithGuardruntime resolutionExecuteTracedAsyncwithStrategyExecutionTrace(status, timing)KeyNotFoundtrace for missing keysChain
InvokeTracedAsyncwith per-step status displayThrowingHandler+IHandlerExceptionObserverFailedstatus captured in trace before re-throwFactory
IAsyncFactoryRegistry+CreateAsync)IPooledFactoryRegistrywithRentAsync/Return)PooledBufferproduct implementingIResettableState
[Transition](OnEnter/OnExitattributes)IStateMachineinstance wrapper withCurrentStatetrackingTryTransitionAsyncfiring entry/exit actionsTryTransitionTracedAsyncwithTransitionTraceobservabilityEventAggregator
ContinueOnErroronPublishTracedAsyncFailingHandlerdemonstrating exception captureEventPublicationTracewithHasFailuresand per-step statusREADME
Updated the projects table to reflect new sample capabilities.
Test plan
dotnet build DesignPatterns.Samples.slnx -c Releasepasses (exit 0)dotnet runfor each modified sample)