Commit eeca03d
authored
Configuration sync disposable config providers (#31)
* Sync all versions
All packages are now on inline versioning.
* #30: Sync Logging with EventLog
~ Convert LogLevel property into a getter for dynamic runtime fetching of the log level.
~ Add a fix on Windows for color logging failing by manually updating the console mode flags with ENABLE_VIRTUAL_TERMINAL_PROCESSING.
~ Rename LogLevel.Trace and ILogger.Trace to Verbose and add better docomments to each method and log level to better explain their use cases.
~ Remove ILogger.Log as this was technically an alias to ILogger.Information as it did the same thing.
~ Update all log methods to now take the raw message getter instead of formatting the messages themselves, this will help to introduce better performance by not evaluating the message straight away.
~ Add another ILogger.Error method with an argument to supply a message that precedes the exception trace back.
* Update Configuration:
Convert IVaultProvider to IDisposable
Update current registered auto refresh providers to a dictionary to make concurrent removal easier.
Expose the current cached values to inheritied classes.
Convert mount and path to virutal to not introduce a breaking change by adding set to the mix.
Move the refresh thread from a simple thread wait to a wait event system to allow manual refreshing of all global providers.
Add argument to constructors to control if the provider should be added to the auto refresh thread or not.
Add extra constructor to allow setting mount and path via constructor.
Implement IDisposable1 parent 575c923 commit eeca03d
File tree
31 files changed
+266
-236
lines changed- src
- clients
- client-settings-client
- thumbnails-client
- users-client
- configuration
- configuration
- Implementation
- Interfaces
- core
- file-system/file-system
- floodcheckers
- core
- redis
- grid
- client
- commands
- port-management
- process-management-core
- process-management-docker
- process-management
- hashing/hashing
- logging/logging
- Enums
- Implementation
- Interfaces
- networking/networking
- random/random
- redis/redis
- service-discovery/service-discovery
- text/text
- threading/threading
- vault/vault
31 files changed
+266
-236
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
| |||
Lines changed: 74 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
43 | | - | |
| 45 | + | |
44 | 46 | | |
45 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
46 | 53 | | |
| 54 | + | |
47 | 55 | | |
48 | 56 | | |
49 | 57 | | |
50 | 58 | | |
51 | 59 | | |
52 | | - | |
| 60 | + | |
53 | 61 | | |
54 | 62 | | |
55 | | - | |
| 63 | + | |
56 | 64 | | |
57 | 65 | | |
58 | 66 | | |
| |||
78 | 86 | | |
79 | 87 | | |
80 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
81 | 98 | | |
82 | 99 | | |
83 | 100 | | |
84 | 101 | | |
85 | 102 | | |
86 | | - | |
| 103 | + | |
87 | 104 | | |
88 | 105 | | |
89 | 106 | | |
90 | | - | |
| 107 | + | |
91 | 108 | | |
92 | 109 | | |
93 | 110 | | |
| |||
100 | 117 | | |
101 | 118 | | |
102 | 119 | | |
103 | | - | |
| 120 | + | |
104 | 121 | | |
105 | 122 | | |
106 | 123 | | |
| |||
128 | 145 | | |
129 | 146 | | |
130 | 147 | | |
131 | | - | |
| 148 | + | |
132 | 149 | | |
133 | 150 | | |
134 | 151 | | |
| |||
140 | 157 | | |
141 | 158 | | |
142 | 159 | | |
143 | | - | |
| 160 | + | |
144 | 161 | | |
145 | 162 | | |
146 | 163 | | |
| |||
153 | 170 | | |
154 | 171 | | |
155 | 172 | | |
156 | | - | |
| 173 | + | |
| 174 | + | |
157 | 175 | | |
158 | 176 | | |
159 | 177 | | |
160 | 178 | | |
161 | 179 | | |
162 | | - | |
163 | | - | |
164 | | - | |
| 180 | + | |
165 | 181 | | |
166 | | - | |
| 182 | + | |
167 | 183 | | |
168 | | - | |
169 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
170 | 190 | | |
171 | | - | |
| 191 | + | |
| 192 | + | |
172 | 193 | | |
173 | 194 | | |
174 | 195 | | |
175 | 196 | | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
176 | 211 | | |
177 | 212 | | |
178 | 213 | | |
179 | 214 | | |
180 | 215 | | |
181 | 216 | | |
182 | | - | |
| 217 | + | |
183 | 218 | | |
184 | 219 | | |
185 | 220 | | |
186 | | - | |
| 221 | + | |
187 | 222 | | |
188 | 223 | | |
189 | 224 | | |
190 | 225 | | |
191 | 226 | | |
192 | 227 | | |
193 | 228 | | |
194 | | - | |
| 229 | + | |
| 230 | + | |
195 | 231 | | |
196 | 232 | | |
197 | 233 | | |
| |||
211 | 247 | | |
212 | 248 | | |
213 | 249 | | |
214 | | - | |
215 | | - | |
| 250 | + | |
| 251 | + | |
216 | 252 | | |
217 | 253 | | |
218 | 254 | | |
| |||
245 | 281 | | |
246 | 282 | | |
247 | 283 | | |
248 | | - | |
249 | 284 | | |
250 | 285 | | |
251 | 286 | | |
| |||
258 | 293 | | |
259 | 294 | | |
260 | 295 | | |
261 | | - | |
| 296 | + | |
262 | 297 | | |
263 | 298 | | |
264 | 299 | | |
| |||
272 | 307 | | |
273 | 308 | | |
274 | 309 | | |
275 | | - | |
| 310 | + | |
276 | 311 | | |
277 | 312 | | |
278 | 313 | | |
| |||
282 | 317 | | |
283 | 318 | | |
284 | 319 | | |
285 | | - | |
| 320 | + | |
286 | 321 | | |
287 | 322 | | |
288 | 323 | | |
| |||
309 | 344 | | |
310 | 345 | | |
311 | 346 | | |
312 | | - | |
313 | | - | |
| 347 | + | |
| 348 | + | |
314 | 349 | | |
315 | 350 | | |
316 | 351 | | |
| |||
320 | 355 | | |
321 | 356 | | |
322 | 357 | | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
323 | 369 | | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
| |||
0 commit comments