Enhanced the email-sending workflow to support attachments: - Updated `SendEmailCommand` with an `Attachments` property. - Added `WithAttachments` method to handle attachment initialization. - Modified `EmailsController` to accept file uploads via `IFormFileCollection`. - Implemented `BuildAttachmentsAsync` to process uploaded files. - Updated `EmailMappingProfile` to map `Attachments` to `EmailContext`. - Adjusted `SendEmail` endpoint to consume `multipart/form-data`. - Enhanced `SendEmail` response to include the queued event ID. - Updated project file to include Swagger infrastructure folder. These changes enable handling of email attachments and improve API functionality.
44 lines
2.0 KiB
XML
44 lines
2.0 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.Web">
|
|
|
|
<PropertyGroup>
|
|
<TargetFrameworks>net8.0</TargetFrameworks>
|
|
<Nullable>enable</Nullable>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
|
<PackageId>DigitalData.MessagingService.API</PackageId>
|
|
<Title></Title>
|
|
<Authors>Digital Data GmbH</Authors>
|
|
<Company>Digital Data GmbH</Company>
|
|
<Product>DigitalData.MessagingService.API</Product>
|
|
<Version>1.0.0-beta</Version>
|
|
<FileVersion>1.0.0.0</FileVersion>
|
|
<AssemblyVersion>1.0.0.0</AssemblyVersion>
|
|
<Copyright>Copyright © 2026 Digital Data GmbH. All rights reserved.</Copyright>
|
|
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Serilog.AspNetCore" Version="10.0.0" />
|
|
<PackageReference Include="Serilog.Settings.Configuration" Version="10.0.1" />
|
|
<PackageReference Include="Serilog.Sinks.Console" Version="6.1.1" />
|
|
<PackageReference Include="Serilog.Sinks.File" Version="7.0.0" />
|
|
<PackageReference Include="Serilog.Sinks.SQLite" Version="7.0.0" />
|
|
<PackageReference Include="Serilog.UI" Version="3.2.0" />
|
|
<PackageReference Include="Serilog.UI.SqliteProvider" Version="1.1.0" />
|
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.2" />
|
|
<PackageReference Include="Microsoft.Extensions.Hosting" Version="10.0.10" />
|
|
<PackageReference Include="System.Security.Cryptography.Xml" Version="10.0.10" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\..\core\DigitalData.MessagingService.Application\DigitalData.MessagingService.Application.csproj" />
|
|
<ProjectReference Include="..\..\core\DigitalData.MessagingService.Domain\DigitalData.MessagingService.Domain.csproj" />
|
|
<ProjectReference Include="..\..\infrastructure\DigitalData.MessagingService.Infrastructure\DigitalData.MessagingService.Infrastructure.csproj" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Folder Include="Infrastructure\Swagger\" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|