Замотохина Мария Лаб. 3 Группа 6511#141
Open
ZamotohinaMaria wants to merge 21 commits into
Open
Conversation
danlla
requested changes
May 14, 2026
Comment on lines
+9
to
+12
| var minio = builder.AddMinioContainer("minio") | ||
| .WithEnvironment("MINIO_ROOT_USER", minioAccessKey) | ||
| .WithEnvironment("MINIO_ROOT_PASSWORD", minioSecretKey) | ||
| .WaitFor(redis); |
There was a problem hiding this comment.
В 6 варианте в качестве хостинга S3 должен использоваться Localstack, а не Minio
Comment on lines
+28
to
+53
| var generator1 = builder.AddProject<Projects.MedicalPatient_Generator>("generator-1") | ||
| .WithEndpoint("http", endpoint => endpoint.Port = 5101) | ||
| .WithReference(redis) | ||
| .WithEnvironment("SQS__ServiceUrl", sqs.GetEndpoint("http")) | ||
| .WithEnvironment("SQS__QueueName", "medical-patients") | ||
| .WaitFor(redis) | ||
| .WithExternalHttpEndpoints() | ||
| .WaitFor(sqs); | ||
|
|
||
| var generator2 = builder.AddProject<Projects.MedicalPatient_Generator>("generator-2") | ||
| .WithEndpoint("http", endpoint => endpoint.Port = 5102) | ||
| .WithReference(redis) | ||
| .WithEnvironment("SQS__ServiceUrl", sqs.GetEndpoint("http")) | ||
| .WithEnvironment("SQS__QueueName", "medical-patients") | ||
| .WaitFor(redis) | ||
| .WithExternalHttpEndpoints() | ||
| .WaitFor(sqs); | ||
|
|
||
| var generator3 = builder.AddProject<Projects.MedicalPatient_Generator>("generator-3") | ||
| .WithEndpoint("http", endpoint => endpoint.Port = 5103) | ||
| .WithReference(redis) | ||
| .WithEnvironment("SQS__ServiceUrl", sqs.GetEndpoint("http")) | ||
| .WithEnvironment("SQS__QueueName", "medical-patients") | ||
| .WaitFor(redis) | ||
| .WithExternalHttpEndpoints() | ||
| .WaitFor(sqs); |
There was a problem hiding this comment.
Создание сервисов можно сделать в цикле, чтобы проще было увеличивать их количество
There was a problem hiding this comment.
Код в этом проекте очень сильно совпадает с кодом в #107
Надеюсь переход на Localstack сделает их более непохожими
There was a problem hiding this comment.
Этот класс один в один совпадает с похожим классом из #107
| } | ||
| } | ||
|
|
||
| public async Task<List<S3Object>> WaitForS3ObjectAsync(string key, int maxAttempts = 15) |
Comment on lines
+13
to
+14
| if (string.Equals(configuredBucketName, CommonTypoBucketName, StringComparison.OrdinalIgnoreCase)) | ||
| return DefaultBucketName; |
There was a problem hiding this comment.
Исправление опечатки можно же было решить исправлением файлов настроек и простым перезапуском aspire проекта
Эти строчки здесь не нужны
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ФИО: Замотохина Мария
Номер группы: 6511
Номер лабораторной: 3
Номер варианта: 6
Краткое описание предметной области: Медицинский пациент
Краткое описание добавленных фич: Добавлен брокер сообщений и файловый сервис Minio. Добавлены интеграционные тесты.