Commit fad98f8
Feature redesign to facilitate AOT and trimming support (#7413)
* Spiking around
* More fiddling around
* Allow overriding feature name internally
* Use construct
* Track enabled features
* Avoid multiple creation
* Fix depends on and make feature name convention internal
* Fix tests
* Express enable by default
* Feature activation order
* Cosmetics
* Reference core features (order still waky)
* Remove unneeded method
* Fix incorrect acceptance test that only worked due to a specific order being in place
* Preserve previous scanning order for now
* Remove EnableDefault for now from the features in core
* Core should no longer scan itself
* Remove EnableDefault from acceptance tests
* Rename to registry for now
* Try relying less on settings with some hackery
* Further decouple states
* Further simplify state checks
* Seggregate into local function
* Filter out empty dependencies
* Reorder
* Use feature info more consistently
* Press dependencies flatt
* AddCore
* Bring back previous ctor
* Approve temporary API changes
* Small fixes
* Use AddCore
* Handle weak dependencies better
* Use feature info name consistently
* Move a layer up
* Use EnableFeature
* Leaner feature component (might die)
* Remove features from scanning
* Cleanup
* Correct state
* Move todo because otherwise it trips up the documentation tests
* Add some state coverage
* Feature Component
* Fix saga
* Avoid unbounded recursion
* Preserve default state
* Simplify tests
* Seperate dependencies
* Temporary workaround for readonly struct records
* Move sort out
* Rename
* Move feature info out
* Split into settings and component like other pieces in Core
* EnableByDefault in persistence to stay backward compatible
* KeyedCollection makes things more expressive
* Use feature settings directly
* Apply things consistently
* Obsolete the ability to enable features by default on the settings holder
* Remove now unnecessary settings methods and add not generic public methods
* Obsolete non-generic Is methods
* Obsolete type based APIs on endpoint configuration
* Get rid of overloads that are no longer needed
* Remove another type based overload
* Rename method
* Spelling
* Cleanup FeatureSettingsTests
* Get rid of some EnabledByDefault in the dependency tests
* Remove EnableByDefault where possible in FeatureStartupTests
* Remove EnableByDefault from FeatureDifferingOnlyByNamespaceTests
* Remove EnableByDefault from FeatureDefaultsTests
* Remove EnableByDefault from FeatureSettingsTests
* Remove unsupported scenario (also fails on master and is not possible to achieve because defaults run always
* Remove remaining EnabledByDefault from dependency tests
* Obsolete Feature EnableByDefault
* Add a subscription storage instead
* Obsolete DependsOnOptionaly with type
* Cleanup feature base class
* Correct version number
* Change EnableByDefault obsolete message
* Simplify code flow a bit
* Isolate obsolete EnableByDefault tests with pragma suppressions (#7446)
* Initial plan
* Isolate EnableByDefault tests into partial classes with suppressions
Co-authored-by: danielmarbach <174258+danielmarbach@users.noreply.github.com>
* Restore global.json (accidentally renamed in previous commit)
Co-authored-by: danielmarbach <174258+danielmarbach@users.noreply.github.com>
* Collapse When_features_are_scanned into single file with pragma at top
Co-authored-by: danielmarbach <174258+danielmarbach@users.noreply.github.com>
* Add pragma warning restore at bottom of files with pragma disable
Co-authored-by: danielmarbach <174258+danielmarbach@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: danielmarbach <174258+danielmarbach@users.noreply.github.com>
---------
Co-authored-by: Daniel Marbach <danielmarbach@users.noreply.github.com>
Co-authored-by: David Boike <david.boike@gmail.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: danielmarbach <174258+danielmarbach@users.noreply.github.com>1 parent ccc0d70 commit fad98f8
File tree
79 files changed
+1337
-1129
lines changed- src
- NServiceBus.AcceptanceTesting
- AcceptanceTestingPersistence
- Outbox
- SagaPersister
- SubscriptionStorage
- Customization
- Support
- NServiceBus.AcceptanceTests
- Core
- DependencyInjection
- Feature
- Hosting
- Installers
- Outbox
- Pipeline
- Reliability/SynchronizedStorage
- Stopping
- Satellites
- NServiceBus.Core.Tests
- ApprovalFiles
- Features
- Persistence
- Unicast
- Utils/Reflection
- NServiceBus.Core
- Audit
- Causation
- Correlation
- DelayedDelivery
- Features
- Hosting/Helpers
- Licensing
- MessageMutators
- OpenTelemetry
- Performance
- Statistics
- TimeToBeReceived
- Persistence
- Learning
- SagaPersister
- Reliability
- Outbox
- SynchronizedStorage
- Routing
- AutomaticSubscriptions
- MessageDrivenSubscriptions
- SubscriptionMigrationMode
- Sagas
- Serialization
- ServicePlatform/Retries
- StaticHeaders
- Unicast
- UnitOfWork
- TransactionScopes
- Utils/Reflection
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
79 files changed
+1337
-1129
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | | - | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
| 38 | + | |
37 | 39 | | |
38 | | - | |
39 | | - | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | | - | |
| 15 | + | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
Lines changed: 14 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
63 | | - | |
64 | | - | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
95 | | - | |
96 | | - | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | | - | |
100 | | - | |
101 | | - | |
| 99 | + | |
102 | 100 | | |
103 | | - | |
104 | | - | |
105 | | - | |
| 101 | + | |
106 | 102 | | |
107 | 103 | | |
108 | 104 | | |
109 | 105 | | |
110 | | - | |
111 | | - | |
112 | | - | |
| 106 | + | |
113 | 107 | | |
114 | 108 | | |
115 | 109 | | |
116 | 110 | | |
117 | | - | |
118 | | - | |
119 | | - | |
| 111 | + | |
120 | 112 | | |
Lines changed: 64 additions & 0 deletions
| 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 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
Lines changed: 4 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
| 35 | + | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
42 | | - | |
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 44 | + | |
55 | 45 | | |
56 | | - | |
| 46 | + | |
57 | 47 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | 48 | | |
64 | 49 | | |
65 | 50 | | |
66 | 51 | | |
67 | 52 | | |
68 | 53 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 54 | + | |
75 | 55 | | |
76 | 56 | | |
77 | 57 | | |
| |||
Lines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 35 | + | |
38 | 36 | | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
42 | | - | |
43 | | - | |
44 | | - | |
| 40 | + | |
45 | 41 | | |
46 | 42 | | |
47 | 43 | | |
| |||
52 | 48 | | |
53 | 49 | | |
54 | 50 | | |
55 | | - | |
56 | 51 | | |
57 | 52 | | |
58 | 53 | | |
| |||
0 commit comments