Горшенин Дмитрий Лаб. 1 Группа 6511#2
Conversation
…аб. роботы В решение добавлены проекты CreditApplication.AppHost (Aspire-хост), CreditApplication.Generator (API генерации кредитных заявок с кэшированием в Redis) и CreditApplication.ServiceDefaults (общие настройки сервисов: логирование, OpenTelemetry, resilience, health checks). Реализована модель заявки, генератор на Bogus, сервис с кэшированием, API-эндпоинт /credit-application.
There was a problem hiding this comment.
Pull request overview
This pull request implements Lab 1 for a student assignment, creating a microservices-based credit application generator with caching functionality. The solution demonstrates modern .NET 8 development practices including Bogus for data generation, Redis for distributed caching, Serilog for structured logging, OpenTelemetry for observability, and .NET Aspire for orchestration.
Changes:
- Implemented a credit application generator service using Bogus to create synthetic credit application data with Russian localization
- Added Redis-based distributed caching to improve performance and reduce redundant data generation
- Configured .NET Aspire orchestration to manage the generator service, Redis cache, and Blazor WebAssembly client
- Set up comprehensive logging and telemetry infrastructure using Serilog and OpenTelemetry
Reviewed changes
Copilot reviewed 20 out of 20 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| README.md | Replaced generic lab instructions with project-specific documentation including architecture diagrams and screenshots |
| CreditApplication.ServiceDefaults/Extensions.cs | Implemented shared service configuration for logging, OpenTelemetry, health checks, and service discovery |
| CreditApplication.ServiceDefaults/CreditApplication.ServiceDefaults.csproj | Defined dependencies for Serilog, OpenTelemetry, and Aspire service discovery |
| CreditApplication.Generator/Services/CreditApplicationGenerator.cs | Core generator using Bogus to create credit applications with locale-specific data |
| CreditApplication.Generator/Services/CreditApplicationService.cs | Service layer implementing caching logic with IDistributedCache |
| CreditApplication.Generator/Models/CreditApplicationModel.cs | Data model for credit applications with XML documentation |
| CreditApplication.Generator/Program.cs | API endpoint configuration with validation, error handling, and CORS |
| CreditApplication.Generator/CreditApplication.Generator.csproj | Project dependencies including Bogus and Aspire Redis integration |
| CreditApplication.Generator/appsettings.json | Logging configuration for the generator service |
| CreditApplication.Generator/appsettings.Development.json | Development-specific logging configuration |
| CreditApplication.Generator/Properties/launchSettings.json | Launch profiles for local development |
| CreditApplication.AppHost/Program.cs | Aspire orchestration configuration for Redis and microservices |
| CreditApplication.AppHost/CreditApplication.AppHost.csproj | Aspire hosting dependencies |
| CreditApplication.AppHost/appsettings.json | AppHost logging configuration |
| CreditApplication.AppHost/appsettings.Development.json | Development-specific AppHost configuration |
| CreditApplication.AppHost/Properties/launchSettings.json | AppHost launch profiles with Aspire dashboard endpoints |
| CloudDevelopment.sln | Added three new projects to the solution |
| Client.Wasm/wwwroot/appsettings.json | Updated API endpoint URL to credit application service |
| Client.Wasm/Properties/launchSettings.json | Updated client port configuration |
| Client.Wasm/Components/StudentCard.razor | Updated student information and lab details |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
CreditApplication.Generator/Services/CreditApplicationService.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
CreditApplication.Generator/Services/CreditApplicationGenerator.cs
Outdated
Show resolved
Hide resolved
CreditApplication.Generator/Services/CreditApplicationGenerator.cs
Outdated
Show resolved
Hide resolved
CreditApplication.Generator/Services/CreditApplicationService.cs
Outdated
Show resolved
Hide resolved
CreditApplication.Generator/Services/CreditApplicationService.cs
Outdated
Show resolved
Hide resolved
CreditApplication.Generator/Services/CreditApplicationGenerator.cs
Outdated
Show resolved
Hide resolved
| private readonly CreditApplicationGenerator _generator = generator; | ||
| private readonly IDistributedCache _cache = cache; | ||
| private readonly ILogger<CreditApplicationService> _logger = logger; |
CreditApplication.Generator/Services/CreditApplicationGenerator.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 20 out of 20 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ФИО: Горшенин Дмитрий
Номер группы: 6511
Номер лабораторной: 1
Номер варианта: 4
Краткое описание предметной области: Генератор кредитной заявки
Краткое описание добавленных фич: Добавлен сервис генерации и кэширования кредитных заявок