How bareltinc/internshipentrytask works
The product is a .NET payment service that accepts operations, schedules submissions to an external provider, records provider receipts and exposes operation state and event history. The main workflow is routed by Program.cs; PaymentWorker owns queued and retrying submission, while ProviderClient performs the HTTP request. SQLite persists operations and event records. The sampled source shows these principal calls and routes; the provider and client are external actors, and no independent durable queue is shown.
Main entry points: Program.cs HTTP routes · AppDbContext.cs EF database context · PaymentWorker.cs Payment worker · ProviderClient.cs Provider client
Components 11
Payment API
- HTTP routes
Program.cs - Operation DTOs
DTOs/OperationDTO.cs
Payment Processing
- Payment worker
Services/PaymentWorker.cs - Provider client
Services/ProviderClient.cs - Provider DTOs
DTOs/ProviderDTO.cs
Persistence Model
- EF database context
Data/AppDbContext.cs - SQLite database
- Payment operation
Models/Operation.cs - Operation event
Models/OperationEvent.cs
Other components
- Payment client
- Payment provider
Connections 15
- Payment client → HTTP routes: sends requests
Program.cs - HTTP routes → Operation DTOs: accepts payloads
Program.cs - HTTP routes → EF database context: reads and writes
Program.cs - HTTP routes → Payment operation: creates and updates
Program.cs - HTTP routes → Operation event: records transitions
Program.cs - HTTP routes → Payment worker: enqueues submission
Program.cs - Payment worker → EF database context: loads and saves
Services/PaymentWorker.cs - Payment worker → Provider client: submits payment
Services/PaymentWorker.cs - Payment worker → Payment operation: processes state
Services/PaymentWorker.cs - Provider client → Provider DTOs: builds request
Services/ProviderClient.cs - Provider client → Payment provider: posts payment
Services/ProviderClient.cs - Payment provider → HTTP routes: posts receipt
Program.cs - EF database context → SQLite database: persists records
- EF database context → Payment operation: maps entity
Data/AppDbContext.cs - EF database context → Operation event: maps entity
Data/AppDbContext.cs