Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,21 @@ services:
networks:
- app-network

background-service:
build:
context: ./fullstack2026BE
dockerfile: BackgroundService/Dockerfile
environment:
ConnectionStrings__DefaultConnection: "Server=sqlserver,1433;Database=${DB_NAME};User Id=sa;Password=${DB_PASSWORD};TrustServerCertificate=True"
ASPNETCORE_ENVIRONMENT: Development
ports:
- "5002:8080" # Hangfire dashboard at http://localhost:5002/hangfire
depends_on:
sqlserver:
condition: service_healthy
networks:
- app-network

nginx:
build:
context: .
Expand Down
1 change: 1 addition & 0 deletions fullstack2026BE/BLL/BLL.csproj.lscache
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ TemporaryDependencyNodeTargetIdentifier=net9.0
/warnaserror+:NU1605,SYSLIB0011

[sourceFiles]
Jobs/INotificationJob.cs
obj/Debug/net9.0/
.NETCoreApp,Version=v9.0.AssemblyAttributes.cs
BLL.AssemblyInfo.cs
Expand Down
6 changes: 6 additions & 0 deletions fullstack2026BE/BLL/Jobs/INotificationJob.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace BLL.Jobs;

public interface INotificationJob
{
Task SendUserDigestAsync(string userId);
}
22 changes: 22 additions & 0 deletions fullstack2026BE/BackgroundService/BackgroundService.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UserSecretsId>dotnet-BackgroundService-284fb7f5-8953-4e33-9155-9a3ced1bb482</UserSecretsId>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Hangfire.AspNetCore" Version="1.8.*" />
<PackageReference Include="Hangfire.Core" Version="1.8.*" />
<PackageReference Include="Hangfire.SqlServer" Version="1.8.*" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="7.0.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="../Data.Access.Dapper/Data.Access.Dapper.csproj" />
<ProjectReference Include="../Infrastructure/Infrastructure.csproj" />
</ItemGroup>

</Project>
Loading
Loading