5cf5f888eb
- ServiceCollectionExtensions in DAL.EF: AddNotificationDataAccess (DbContext, UoW, repositories) - ServiceCollectionExtensions in Services: AddNotificationServices (MediatR + TransactionBehavior) - Api/Program.cs: Serilog, OpenAPI, controllers, DI wiring - Worker/Program.cs: Serilog, DI wiring - appsettings.json: Serilog config with Console + Seq sinks, connection string - appsettings.Development.json: Debug log level overrides Ref: IT-628 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
12 lines
629 B
C#
12 lines
629 B
C#
using HrynCo.NotificationService.DAL.Abstract.Templates;
|
|
|
|
namespace HrynCo.NotificationService.DAL.Abstract.Repositories;
|
|
|
|
public interface IEmailTemplateRepository
|
|
{
|
|
Task<IReadOnlyList<EmailTemplate>> GetByServiceAsync(string serviceName, CancellationToken ct = default);
|
|
Task<EmailTemplate?> GetAsync(string serviceName, string key, string languageCode, CancellationToken ct = default);
|
|
Task AddAsync(EmailTemplate template, CancellationToken ct = default);
|
|
Task UpdateAsync(EmailTemplate template, CancellationToken ct = default);
|
|
Task DeleteAsync(EmailTemplate template, CancellationToken ct = default);
|
|
} |