register notification service
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m52s
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m52s
This commit is contained in:
parent
9f756771cd
commit
583569682d
1 changed files with 2 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ using Hangfire.Common;
|
|||
using BMA.EHR.Application.Repositories.Leaves.TimeAttendants;
|
||||
using BMA.EHR.Leave.Service.Extensions;
|
||||
using BMA.EHR.Leave.Service.Services;
|
||||
using BMA.EHR.Leave.Services;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
// ตั้ง TimeZone เป็น Asia/Bangkok ในโค้ด
|
||||
|
|
@ -95,6 +96,7 @@ builder.Services.AddLeaveApplication();
|
|||
builder.Services.AddPersistence(builder.Configuration);
|
||||
builder.Services.AddLeavePersistence(builder.Configuration);
|
||||
builder.Services.AddTransient<HolidayService>();
|
||||
builder.Services.AddTransient<NotificationService>();
|
||||
|
||||
// Configure HttpClient with increased timeout for long-running operations (e.g., RabbitMQ Management API)
|
||||
builder.Services.AddHttpClient();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue