Interface IMailingStatistics
Interface for calculating mailing statistics
Namespace: SuperOffice.CRM.Entities
Assembly: SoDataBase.dll
Syntax
public interface IMailingStatistics
Methods
CalculateMailingStatisticsAsync(int, int, CancellationToken)
Calculate statistics, but potentially skip if we have done so very recently
Declaration
Task<int> CalculateMailingStatisticsAsync(int shipmentId, int massUpdateThreshold = 100, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | shipmentId | The ID of the shipment |
int | massUpdateThreshold | The mass update threshold |
CancellationToken | cancellationToken | The cancellation token |
Returns
Type | Description |
---|---|
Task<int> | The number of updates |
ForceCalculateMailingStatisticsAsync(int, int, CancellationToken)
Really calculate statistics, no skipping
Declaration
Task<int> ForceCalculateMailingStatisticsAsync(int shipmentId, int massUpdateThreshold = 100, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | shipmentId | The ID of the shipment |
int | massUpdateThreshold | The mass update threshold |
CancellationToken | cancellationToken | The cancellation token |
Returns
Type | Description |
---|---|
Task<int> | The number of updates |