Commit b5b5330
Explicit custom saga finder registration API (#7445)
* Add new API with naive implementation
* Move towards strongly typed activation
* Remove scanning of finders
* Fix tests
* Formatting
* Cleanup
* Code style
* Remove unneded mapping layer
* Cleanup
* Remove unused class
* Consolidate
* Use new to create the finder adapters
* Get rid of finder properties
* Get rid of findertype
* More cleanup
* ctor cleanup
* Add a mapper finalize step
* Move more validation into mapper
* Fix persistence tests
* Cleanup
* Dispose finders
* Fix warnings
* Comment
* Fixes after rebase
* Add finder type back in
* Add obsoletes
* More obsoletes
* Formatting
* Apply suggestions from code review
Co-authored-by: David Boike <david.boike@gmail.com>
* Approve reworded obsoletes
* Fix after rebase
* Simplify metadata
* Cleanup mapping
* Factory can be static
* Simplify mapper logic
* Remove TypeDescriptor.GetConverter that requires unreferenced code
* Remove null handling because the code could never return null (not before and not now)
* Class constraint for finder
* More consistent constraint through the saga data
* Same constraint
* The message type is well known
* The message type is well known here too
* More strong typing and get rid of closure that is unnecessary
* Rename to inspect since it is less misleading
* Nullability on mapper and header mapping
* Cleanup
* Update src/NServiceBus.Core/Sagas/SagaMapper.cs
Co-authored-by: David Boike <david.boike@gmail.com>
* Update src/NServiceBus.Core/Sagas/SagaPropertyMapper.cs
Co-authored-by: David Boike <david.boike@gmail.com>
* Fix obsoletes
---------
Co-authored-by: David Boike <david.boike@gmail.com>
Co-authored-by: Daniel Marbach <danielmarbach@users.noreply.github.com>1 parent 95c1aec commit b5b5330
File tree
47 files changed
+534
-827
lines changed- src
- NServiceBus.AcceptanceTesting/Customization
- NServiceBus.AcceptanceTests/Core
- Sagas
- SelfVerification
- NServiceBus.Core.Tests
- ApprovalFiles
- Pipeline/Incoming
- Sagas
- Utils/Reflection
- NServiceBus.Core
- Sagas
- Utils/Reflection
- NServiceBus.PersistenceTests/Sagas
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
47 files changed
+534
-827
lines changedLines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| |||
Lines changed: 5 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
| 42 | + | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
50 | | - | |
51 | 49 | | |
52 | | - | |
| 50 | + | |
53 | 51 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | 52 | | |
60 | 53 | | |
61 | 54 | | |
62 | 55 | | |
63 | 56 | | |
64 | 57 | | |
65 | | - | |
66 | | - | |
67 | 58 | | |
68 | 59 | | |
69 | 60 | | |
70 | 61 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 62 | + | |
75 | 63 | | |
76 | 64 | | |
77 | 65 | | |
78 | 66 | | |
| 67 | + | |
79 | 68 | | |
80 | 69 | | |
81 | 70 | | |
| |||
Lines changed: 7 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 39 | + | |
| 40 | + | |
47 | 41 | | |
48 | | - | |
| 42 | + | |
49 | 43 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 44 | | |
56 | 45 | | |
57 | 46 | | |
58 | 47 | | |
59 | 48 | | |
60 | | - | |
61 | | - | |
62 | 49 | | |
63 | 50 | | |
64 | | - | |
| 51 | + | |
65 | 52 | | |
66 | 53 | | |
67 | 54 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | 55 | | |
74 | 56 | | |
75 | 57 | | |
| |||
81 | 63 | | |
82 | 64 | | |
83 | 65 | | |
84 | | - | |
| 66 | + | |
85 | 67 | | |
86 | 68 | | |
87 | 69 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 70 | + | |
| 71 | + | |
93 | 72 | | |
94 | 73 | | |
95 | 74 | | |
96 | 75 | | |
97 | 76 | | |
98 | | - | |
99 | | - | |
100 | 77 | | |
101 | 78 | | |
102 | 79 | | |
| |||
Lines changed: 6 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 40 | + | |
44 | 41 | | |
45 | | - | |
| 42 | + | |
46 | 43 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | 44 | | |
54 | 45 | | |
55 | 46 | | |
56 | 47 | | |
57 | 48 | | |
58 | 49 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | 50 | | |
63 | 51 | | |
64 | | - | |
| 52 | + | |
65 | 53 | | |
66 | 54 | | |
67 | 55 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 56 | + | |
| 57 | + | |
76 | 58 | | |
77 | 59 | | |
78 | 60 | | |
79 | | - | |
80 | 61 | | |
81 | 62 | | |
82 | 63 | | |
| |||
87 | 68 | | |
88 | 69 | | |
89 | 70 | | |
90 | | - | |
| 71 | + | |
91 | 72 | | |
92 | 73 | | |
93 | 74 | | |
94 | 75 | | |
95 | 76 | | |
96 | 77 | | |
97 | | - | |
98 | | - | |
99 | 78 | | |
100 | 79 | | |
101 | 80 | | |
| |||
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 28 | + | |
33 | 29 | | |
34 | 30 | | |
35 | 31 | | |
| |||
Lines changed: 19 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
394 | 400 | | |
395 | 401 | | |
396 | 402 | | |
397 | | - | |
| 403 | + | |
398 | 404 | | |
399 | 405 | | |
400 | 406 | | |
401 | | - | |
402 | | - | |
| 407 | + | |
| 408 | + | |
403 | 409 | | |
404 | 410 | | |
405 | 411 | | |
| |||
869 | 875 | | |
870 | 876 | | |
871 | 877 | | |
| 878 | + | |
| 879 | + | |
872 | 880 | | |
873 | 881 | | |
874 | 882 | | |
| |||
2046 | 2054 | | |
2047 | 2055 | | |
2048 | 2056 | | |
| 2057 | + | |
2049 | 2058 | | |
| 2059 | + | |
2050 | 2060 | | |
2051 | 2061 | | |
2052 | 2062 | | |
| |||
2065 | 2075 | | |
2066 | 2076 | | |
2067 | 2077 | | |
| 2078 | + | |
| 2079 | + | |
2068 | 2080 | | |
2069 | 2081 | | |
2070 | 2082 | | |
| |||
2076 | 2088 | | |
2077 | 2089 | | |
2078 | 2090 | | |
| 2091 | + | |
| 2092 | + | |
2079 | 2093 | | |
2080 | 2094 | | |
2081 | 2095 | | |
| |||
2091 | 2105 | | |
2092 | 2106 | | |
2093 | 2107 | | |
| 2108 | + | |
| 2109 | + | |
2094 | 2110 | | |
2095 | 2111 | | |
2096 | 2112 | | |
| |||
Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
0 commit comments