Notify: fix

This commit is contained in:
Maksim Chegulov 2022-02-18 17:38:15 +03:00
parent b8cfef8d44
commit b420c36d46

View File

@ -1,4 +1,6 @@
var options = new WebApplicationOptions
using ASC.Common.Mapping;
var options = new WebApplicationOptions
{
Args = args,
ContentRootPath = WindowsServiceHelpers.IsWindowsService() ? AppContext.BaseDirectory : default
@ -74,6 +76,8 @@ builder.Host.ConfigureServices((hostContext, services) =>
diHelper.TryAdd<SmtpSender>();
diHelper.TryAdd<AWSSender>(); // fix private
services.AddAutoMapper(Assembly.GetAssembly(typeof(MappingProfile)));
services.AddHostedService<NotifyServiceLauncher>();
});