First Commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using ADS.Helpers.NotifyCenter.Models;
|
||||
|
||||
namespace ADS.Helpers.NotifyCenter.Abstractions;
|
||||
|
||||
public interface INotificationProvider
|
||||
{
|
||||
NotificationChannel Channel { get; }
|
||||
string Name { get; }
|
||||
|
||||
Task<NotificationResult> SendAsync(NotificationMessage message, CancellationToken ct = default);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ADS.Helpers.NotifyCenter.Abstractions;
|
||||
|
||||
public interface INotificationSettingsProvider
|
||||
{
|
||||
Task<TSettings> GetAsync<TSettings>(string tenantId, CancellationToken ct = default)
|
||||
where TSettings : class, new();
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using ADS.Helpers.NotifyCenter.Models;
|
||||
|
||||
namespace ADS.Helpers.NotifyCenter.Abstractions;
|
||||
|
||||
public interface INotifyCenter
|
||||
{
|
||||
Task<NotificationResult> SendAsync(NotificationMessage message, CancellationToken ct = default);
|
||||
}
|
||||
Reference in New Issue
Block a user