Rename IMailRepository and add FindAsync method
Renamed the `IMailRepository` interface to `IReceivedEmailRepository` to better reflect its purpose. Added a new `FindAsync` method to the interface, which supports searching for received emails using a `MailSearchFilter`, an `EmailAccount`, and an optional `CancellationToken`. The method returns a `Task` resolving to an `IEnumerable<ReceivedEmail>`.
This commit is contained in:
@@ -4,7 +4,7 @@ using DigitalData.MessagingService.Domain.Entities;
|
||||
|
||||
namespace DigitalData.MessagingService.Application.Common.Interfaces.Repositories;
|
||||
|
||||
public interface IMailRepository : IRepository<ReceivedEmail>
|
||||
public interface IReceivedEmailRepository : IRepository<ReceivedEmail>
|
||||
{
|
||||
public Task<IEnumerable<ReceivedEmail>> FindAsync(MailSearchFilter mailSearchFilter, EmailAccount accountQuery, CancellationToken cancellationToken = default);
|
||||
}
|
||||
Reference in New Issue
Block a user