Created ECNService

This commit is contained in:
Chase Tucker
2024-03-28 14:11:45 -07:00
parent c4baef8025
commit 830c8576e3
10 changed files with 525 additions and 24 deletions

View File

@ -1,14 +1,12 @@
using FabApprovalWorkerService.Clients;
using FabApprovalWorkerService.Services;
using FabApprovalWorkerService.Workers;
using Microsoft.Data.Sqlite;
using NLog.Extensions.Logging;
using Quartz;
using System.Data;
using Microsoft.Data.SqlClient;
using System.Net.Mail;
WebApplicationBuilder builder = WebApplication.CreateBuilder(args);
@ -21,7 +19,14 @@ builder.Services.AddHttpClient();
builder.Services.AddScoped<IDbConnectionService, DbConnectionService>();
builder.Services.AddScoped<IMonInWorkerClient, MonInWorkerClient>();
builder.Services.AddScoped<IDalService, DalService>();
builder.Services.AddScoped<SmtpClient>((serviceProvider) => {
return new SmtpClient("mailrelay-external.infineon.com");
});
builder.Services.AddScoped<ISmtpClientWrapper, SmtpClientWrapper>();
builder.Services.AddScoped<ISmtpService, SmtpService>();
builder.Services.AddScoped<IUserService, UserService>();
builder.Services.AddScoped<IECNService, ECNService>();
builder.Services.AddQuartz(q => {
JobKey pendingOOOStatusJob = new JobKey("Pending OOO status job");