Skip to content

Ле Лок Тхо 6513 Лаб. 1 #42

Open
lelocthoVN wants to merge 2 commits intoitsecd:mainfrom
lelocthoVN:main
Open

Ле Лок Тхо 6513 Лаб. 1 #42
lelocthoVN wants to merge 2 commits intoitsecd:mainfrom
lelocthoVN:main

Conversation

@lelocthoVN
Copy link

ФИО: Ле Лок Тхо
Номер группы: 6513
Номер лабораторной: 1
Номер варианта: 44
Краткое описание предметной области: Транспортное средство
Краткое описание добавленных фич: Добавлен сервис генерации и кэширование через redis

@github-actions github-actions bot added In progress Код в процессе проверки Lab 1 Лабораторная №1. Кэширование labels Mar 11, 2026
@github-actions github-actions bot requested a review from alxmcs March 11, 2026 10:57

<ItemGroup>
<PackageReference Include="Bogus" Version="35.6.5" />
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="10.0.3" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это неправильная библиотека, необходимо использовать библиотеки с префиксом Aspire

{
options.Configuration = builder.Configuration.GetConnectionString("redis");
options.InstanceName = "vehicle-api";
});
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Соответственно, при использовании нужной библиотеки, эта конфигурация редиса должна измениться

Comment on lines +3 to +15
<Sdk Name="Aspire.AppHost.Sdk" Version="13.1.2" />

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<UserSecretsId>62bfc3f6-9e4a-4858-934b-e6b0454e609a</UserSecretsId>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Aspire.Hosting.AppHost" Version="13.1.2" />
<PackageReference Include="Aspire.Hosting.Redis" Version="13.1.2" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Стабильная версия аспаер для работы с 8 дотнетом - 9.5.х, версии 13.x.x предназначены для 10 дотнета

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

In progress Код в процессе проверки Lab 1 Лабораторная №1. Кэширование

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants