Commit 701db81
committed
feat: add unit tests, WebHost wiring, Notifications, Idempotency, HTTP Resilience, quality fixes
Unit Tests (62 new, 344 total):
- EventBus, ExceptionHandling, StringEncryption, Specifications
- DataSeeder, ConnectionStrings, GlobalFeatureManager, SimpleStateChecker
- DistributedLocking, BackgroundJobs, TextTemplating
- Emailing, SMS, ObjectMapping, Notifications
- AspNetCore (ApiResponse, IdempotentAttribute)
WebHost Integration Wiring:
- Wire 10 framework modules into WebHostFrameworkCompositionModule
- Add MVC filters (Validation, ResultWrapper, ExceptionFilter, Idempotency)
- Add health check endpoints (/healthz)
New Capabilities:
- Notifications: INotificationSender, INotificationChannel, NullNotificationChannel
- Idempotency: [Idempotent] attribute + IdempotencyFilter with IDistributedCache
- HTTP Resilience: AddChengYuanResilience() wrapping MS.Extensions.Http.Resilience
Quality Fixes:
- Security: path traversal fix in FileSystemBlobProvider
- Bug: fragile reflection in BackgroundJobExecutionWorker
- Add null guards to 10+ public API boundaries
- SMS: AddSingleton -> TryAddSingleton
- Seal EntityNotFoundException1 parent 6178cde commit 701db81
324 files changed
Lines changed: 8224 additions & 602 deletions
File tree
- src
- Applications
- AuditLogging/ChengYuan.AuditLogging.Persistence
- FeatureManagement/ChengYuan.FeatureManagement.Persistence
- Identity/ChengYuan.Identity.Persistence
- Repositories
- PermissionManagement/ChengYuan.PermissionManagement.Persistence
- SettingManagement/ChengYuan.SettingManagement.Persistence
- TenantManagement
- ChengYuan.TenantManagement.Application/Stores
- ChengYuan.TenantManagement.Persistence
- Framework
- AspNetCore
- ChengYuan.AspNetCore
- Idempotency
- Results
- Validation
- ChengYuan.HealthChecks
- Auditing
- ChengYuan.Auditing.Abstractions
- Scopes
- ChengYuan.Auditing.Runtime
- AspNetCore
- Scopes
- Authorization/ChengYuan.Authorization.Runtime
- AspNetCore
- BackgroundJobs
- ChengYuan.BackgroundJobs.Abstractions
- ChengYuan.BackgroundJobs.Runtime
- BackgroundWorkers
- ChengYuan.BackgroundWorkers.Abstractions
- ChengYuan.BackgroundWorkers.Runtime
- BlobStoring
- ChengYuan.BlobStoring.Abstractions
- ChengYuan.BlobStoring.Runtime
- Caching
- ChengYuan.Caching.Abstractions
- ChengYuan.Caching.Runtime
- ChengYuan.Caching.StackExchangeRedis
- Core
- Application
- Data
- Caching
- ConnectionStrings
- Events
- Seeding
- GlobalFeatures
- Primitives
- Entities
- Security
- Specifications
- Runtime
- Modularity
- SimpleStateChecking
- Data
- ChengYuan.Data.PostgreSql
- ChengYuan.Data.Sqlite
- ChengYuan.EntityFrameworkCore
- UnitOfWork
- DistributedLocking
- ChengYuan.DistributedLocking.Abstractions
- ChengYuan.DistributedLocking.Runtime
- Emailing
- ChengYuan.Emailing.Abstractions
- ChengYuan.Emailing.Runtime
- EventBus
- ChengYuan.EventBus.Abstractions
- ChengYuan.EventBus.Runtime
- ExceptionHandling
- ChengYuan.ExceptionHandling.Abstractions
- ChengYuan.ExceptionHandling.Runtime
- HttpResilience/ChengYuan.HttpResilience
- Interceptors
- ChengYuan.Interceptors.Abstractions
- ChengYuan.Interceptors.Runtime
- Notifications
- ChengYuan.Notifications.Abstractions
- ChengYuan.Notifications.Runtime
- ObjectMapping
- ChengYuan.ObjectMapping.Abstractions
- ChengYuan.ObjectMapping.Runtime
- Outbox/ChengYuan.Outbox.Worker
- Sms
- ChengYuan.Sms.Abstractions
- ChengYuan.Sms.Runtime
- TextTemplating
- ChengYuan.TextTemplating.Abstractions
- ChengYuan.TextTemplating.Runtime
- VirtualFileSystem
- ChengYuan.VirtualFileSystem.Abstractions
- ChengYuan.VirtualFileSystem.Runtime
- Hosts
- CliHost
- Composition
- Application
- Cli
- Framework
- Properties
- WebHost
- Composition
- Application
- Framework
- Http
- TenantResolution
- Sources
- tests
- ChengYuan.ArchitectureTests/Structure
- ChengYuan.FrameworkKernel.Tests
- Applications/Identity
- Framework
- AspNetCore
- BackgroundJobs
- Core
- DistributedLocking
- Emailing
- EventBus
- ExceptionHandling
- MultiTenancy
- Notifications
- ObjectMapping
- Sms
- TextTemplating
- Hosts
- CliHost
- WebHost
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 | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
24 | 25 | | |
25 | 26 | | |
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 | + | |
27 | 57 | | |
28 | 58 | | |
29 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
13 | 21 | | |
14 | 22 | | |
15 | 23 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| |||
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| 52 | + | |
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| |||
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| 52 | + | |
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| |||
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
| 64 | + | |
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| |||
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| 52 | + | |
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
0 commit comments