Commit 0e15ab5
v1.0 API redesign: annotation-based config, client library, and OTel integration (#289)
* chore: add .worktrees to gitignore
* chore: add test project scaffold
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add Aspire annotation types for Temporal server config
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add ITemporalServerResource interface and refactor resource types
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add TemporalServerArgsBuilder that reads annotations to build CLI args
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add fluent API and endpoint configuration for Temporal resources
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* refactor: remove TemporalServerResourceArguments and TemporalServerResourceBuilder
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: bump package version to 1.0.0
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: apply dependabot version bumps across all dependencies
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add client library with auto-OTel, AddTemporalClient, and AddTemporalWorker
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add Temporal health check to client library
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Update sample apps to use v1.0 API
- AppHost: fluent extension methods, no lambda callbacks
- Worker: AddTemporalWorker() with auto-OTel, remove manual boilerplate
- Api: AddTemporalClient() with auto-OTel, remove manual boilerplate
- ServiceDefaults: AddTemporalServiceDefaults() replaces manual OTel wiring
- Replace direct Temporal package references with Client library project refs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Update README for v1.0 API
- Document new fluent extension method API (no lambda callbacks)
- Add client library section with AddTemporalWorker/AddTemporalClient examples
- Add AddTemporalServiceDefaults() for OTel integration
- Update configuration reference with new method names
- Document automatic OTel and health check features
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Expand test coverage from 43 to 72 tests
Hosting library:
- Fluent API: WithUiIp, WithUiAssetPath, WithUiCodecEndpoint, WithHeadlessUi (executable)
- Executable endpoints: WithUiPort, WithMetricsEndpoint, WithHttpPort, WithHeadlessUi, args callback
- ArgsBuilder: float, double, long dynamic config types
Client library (new coverage):
- AddTemporalClient: missing connection string throws, registers services/health check/runtime
- AddTemporalWorker: missing connection string throws, registers services/health check/runtime
- Default connection name, configureOptions callback, return types
- Runtime registered once across multiple calls
- AddTemporalServiceDefaults: registers meter and tracer provider config
- Health check registered with correct connection-name-based key
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add missing CLI flags and update default image to 1.30.1
- Add --log-config support (WithLogConfig)
- Add --search-attribute support (WithSearchAttribute, SearchAttributeType enum)
- Add --ui-public-path support (WithUiPublicPath)
- Update default image tag from 1.28.2-tctl-1.18.1-cli-1.1.1 to 1.30.1
- 84 tests passing (was 72)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add e2e integration tests using Aspire hosting
- SearchAttributes_AreRegisteredOnServer: verifies WithSearchAttribute()
registers custom search attributes (Keyword, Text, Bool, Datetime) on
the Temporal server via the OperatorService API
- Namespace_IsCreatedOnServer: verifies WithNamespace() creates custom
namespaces accessible via DescribeNamespace
- Uses DistributedApplicationTestingBuilder with a minimal TestAppHost
- Non-proxied HTTP endpoint for direct gRPC access (bypasses TLS proxy)
- 84 unit tests + 2 integration tests all passing
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Export OTel from Temporal container to Aspire dashboard
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add missing CLI flags to README configuration reference
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add client library integration tests with real Aspire host
Tests AddTemporalClient, AddTemporalWorker (all activity lifetime
variants), ConfigureOptions, health check, and end-to-end workflow
execution against a live Temporal dev server.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add client library integration tests with real Aspire host
Tests AddTemporalClient, AddTemporalWorker (all activity lifetime
variants), ConfigureOptions, health check, and end-to-end workflow
execution against a live Temporal dev server. Also fixes resource name
collisions across all integration tests.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix container WithServicePort/WithUiPort setting targetPort incorrectly
WithServicePort and WithUiPort for containers were setting both
endpoint.Port (host-side) and endpoint.TargetPort (container-internal)
to the user value. The internal container port must remain fixed at
7233/8233 since the Temporal process always listens on its defaults.
Only the external host port should change.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix Copilot review feedback: runtime wiring, health check dedup, WithUiPort safety
- Wire TemporalRuntime into client connect options so CustomMetricMeter
is actually used for metrics collection
- Deduplicate health check registration when both AddTemporalClient and
AddTemporalWorker are used with the same connection name
- Make WithUiPort no-op instead of throwing when called after
WithHeadlessUi (for both container and executable)
- Clarify README port comments: WithServicePort/WithUiPort set external
host port only, container internal ports are always fixed
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Update README.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Fix all build warnings: add XML doc comments, disambiguate cref, pass CancellationToken
- Add XML doc comments to all public types (CS1591): annotations, enums, interfaces, resources
- Fix ambiguous WithHeadlessUi cref references (CS0419)
- Pass TestContext.Current.CancellationToken in integration tests (xUnit1051)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add param tags to records and primary constructors to fully resolve CS1591
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent 89c6b53 commit 0e15ab5
55 files changed
Lines changed: 2737 additions & 689 deletions
File tree
- sample
- Api
- AppHost
- ServiceDefaults
- Worker
- src
- InfinityFlow.Aspire.Temporal.Client
- InfinityFlow.Aspire.Temporal
- Annotations
- tests
- InfinityFlow.Aspire.Temporal.Tests
- TestAppHost
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
484 | 484 | | |
485 | 485 | | |
486 | 486 | | |
487 | | - | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
0 commit comments