Commit 9d8ab03
feat: Add events to the multi provider (#568)
* feat: Implement event handling infrastructure in MultiProvider
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
* feat: Implement event processing for MultiProvider
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
* feat: Enhance event handling in MultiProvider with improved status management
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
* feat: Add event emission for ProviderConfigurationChanged in MultiProvider
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
* feat: Implement graceful shutdown for event processing in MultiProvider
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
* feat: Add error handling and event emission for evaluation failures in MultiProvider
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
* feat: Update test name for EvaluateAsync to reflect error handling for unsupported run modes
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
* feat: Add unit tests for event emission in MultiProvider
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
* feat: Enhance MultiProvider event tests with initialization and error state handling
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
* feat: Refactor event emission test for error state in MultiProvider
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
* feat: Refactor MultiProvider event tests for improved readability and error handling
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
* feat: Refactor MultiProvider event tests for improved clarity and consistency
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
* feat: Improve event handling logic in MultiProvider for better performance and clarity
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
* feat: Add event handling documentation for MultiProvider
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
* feat: Dispose event processing cancellation token in MultiProvider shutdown
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
* feat: Implement thread-safe access to provider status in MultiProvider
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
* Replace Dictionary with ConcurrentDictionary for event listening tasks in MultiProvider
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
* feat: Safeguard against ObjectDisposedException during event processing cancellation in MultiProvider
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
* Update src/OpenFeature.Providers.MultiProvider/MultiProvider.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
* fix: prevent duplicate event listening tasks for registered providers
Signed-off-by: GitHub <noreply@github.com>
* feat: enhance MultiProvider to include logging and prevent duplicate event listeners
Signed-off-by: GitHub <noreply@github.com>
* refactor: remove unused config folder and reorganize test project entries
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
* fix: prevent duplicate event listening by checking existing tasks before adding
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
* fix: clear event listening tasks during provider shutdown
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
* fix: streamline event listening task addition by using TryAdd method
Signed-off-by: GitHub <noreply@github.com>
* fix: remove setting of ProviderStatus to Fatal during shutdown
Signed-off-by: GitHub <noreply@github.com>
---------
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
Signed-off-by: GitHub <noreply@github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent 67d5312 commit 9d8ab03
File tree
7 files changed
+811
-29
lines changed- src
- OpenFeature.Providers.MultiProvider
- OpenFeature
- test/OpenFeature.Providers.MultiProvider.Tests
- Utils
7 files changed
+811
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | 17 | | |
21 | 18 | | |
22 | 19 | | |
| |||
59 | 56 | | |
60 | 57 | | |
61 | 58 | | |
| 59 | + | |
62 | 60 | | |
63 | 61 | | |
64 | 62 | | |
65 | 63 | | |
66 | 64 | | |
67 | | - | |
68 | | - | |
69 | 65 | | |
| 66 | + | |
70 | 67 | | |
71 | 68 | | |
72 | | - | |
| 69 | + | |
Lines changed: 319 additions & 19 deletions
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
184 | 247 | | |
185 | 248 | | |
186 | 249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
0 commit comments