Notify: fix
This commit is contained in:
parent
b8cfef8d44
commit
b420c36d46
@ -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>();
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user