How shaershalomwork/cleanarchitecture works
This is a data-centric customer integration baseline: the browser or an API client authenticates, invokes customer operations, and receives explicit Success, Warning, or Error outcomes. Customer workflows cover listing, overview, create, replace, patch, and delete; overview can include partial billing results. The README documents fake development sources and SQL Server, SQLite, and Oracle customer providers. The graph shows those documented capabilities, while some internal wiring is represented only at the subsystem level because its implementation was not sampled.
Main entry points: SourceExecutor.cs Source execution · Commands Customer commands · Customers.cs Customer endpoints · Program.cs HTTP runtime
Components 24
Web experience
- Angular application
src/Web/ClientApp/src/app/app.module.ts - Session and CSRF
src/Web/ClientApp/src/app/core/session.service.ts - Customer client
src/Web/ClientApp/src/app/core/customer.service.ts - Authentication endpoints
src/Web/Endpoints/Authentication.cs - Customer endpoints
src/Web/Endpoints/Customers.cs - Authentication setup
src/Web/Authentication/AuthenticationRegistration.cs
Customer use cases
- Customer application
src/Application/Customers - Customer queries
src/Application/Customers/Queries - Customer commands
src/Application/Customers/Commands - Customer rules
src/Application/Customers/CustomerRules.cs - Operation outcome
src/Application/Common/Results/OperationResult.cs
Source integrations
- Customer source contracts
src/Application/Customers/Sources/CustomerSources.cs - Source execution
src/Infrastructure/Execution/SourceExecutor.cs - Resilience pipelines
src/Infrastructure/Execution/SourcePipelines.cs - Customer provider adapters
src/Infrastructure/Sources/CustomerRegistry - Billing adapter
src/Infrastructure/Sources/Billing/HttpBillingSourceAdapter.cs - Fake sources
src/Infrastructure/Fakes
Runtime operations
- HTTP runtime
src/Web/Program.cs - Integration telemetry
src/Infrastructure/Observability/IntegrationTelemetry.cs - Service defaults
src/ServiceDefaults/Extensions.cs
Other components
- User or API client
- Customer system of record
- Billing service
- External identity provider
Connections 25
- User or API client → Angular application: uses
- Angular application → Session and CSRF: loads session
- Session and CSRF → Authentication endpoints: requests identity
- Angular application → Customer client: invokes
- Customer client → Customer endpoints: sends operations
- Customer endpoints → Customer queries: dispatches reads
- Customer endpoints → Customer commands: dispatches writes
- Customer queries → Customer source contracts: reads sources
- Customer commands → Customer rules: checks rules
- Customer commands → Customer source contracts: writes source
- Customer queries → Operation outcome: returns outcome
- Customer commands → Operation outcome: returns outcome
- Customer source contracts → Source execution: executes through
- Source execution → Resilience pipelines: uses resilience
- Source execution → Customer provider adapters: invokes provider
- Source execution → Fake sources: uses in development
- Customer provider adapters → Customer system of record: reads and writes
- Source execution → Billing adapter: invokes billing
- Billing adapter → Billing service: requests billing
- Authentication endpoints → Authentication setup: uses schemes
- Authentication setup → External identity provider: federates sign-in
- HTTP runtime → Authentication endpoints: maps routes
- HTTP runtime → Customer endpoints: maps routes
- HTTP runtime → Service defaults: configures runtime
- Resilience pipelines → Integration telemetry: records transitions