Interface IUserMailCollection
The collection of queued mail to users.
public interface IUserMailCollection : IDiskRepositoryCollection<UserMailEntity>, IDiskRepositoryCollection<UserMailEntity, ObjectId>, IRepositoryCollection<UserMailEntity, ObjectId>, IReadOnlyRepositoryCollection<UserMailEntity, ObjectId>, IRepositoryCollection, IReadOnlyRepositoryCollection
- Inherited Members
-
IDiskRepositoryCollection<UserMailEntity, ObjectId>.GetCollection()IReadOnlyRepositoryCollection<UserMailEntity, ObjectId>.GetDirtyAsync()IReadOnlyRepositoryCollection<UserMailEntity, ObjectId>.GetFailedIndices()IRepositoryCollection.DropCollectionAsync()
Properties
Retention
How long a mail is kept once it is done.
TimeSpan Retention { get; }
Property Value
Methods
CountSentByCategoryAsync(DateTime, CancellationToken)
For each category, the mails sent or bounced to a user since since, and to how many users, in one aggregation on the server.
Task<IReadOnlyList<UserMailCategorySent>> CountSentByCategoryAsync(DateTime since, CancellationToken cancellationToken = default)
Parameters
sinceDateTimecancellationTokenCancellationToken
Returns
CountSentToContactsByCategoryAsync(DateTime, CancellationToken)
For each contact category, the contact mails sent or bounced since since, and to how many distinct addresses, in one aggregation on the server.
Task<IReadOnlyList<UserMailCategorySent>> CountSentToContactsByCategoryAsync(DateTime since, CancellationToken cancellationToken = default)
Parameters
sinceDateTimecancellationTokenCancellationToken