Interface IActivityTruncater
Namespace: EPiServer.DataAbstraction.Activities.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public interface IActivityTruncater
Methods
TruncateArchiveAsync()
Truncates the activity archive for all activities older that a given date.
Declaration
Task<int> TruncateArchiveAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Int32> | An integer indicating how many activities that was removed from the activity archive. |
Remarks
This method does not guarantee that all potential items have been truncated after completion. Run multiple times and check the return value for an indication if the log has been truncated to the full extent.
TruncateAsync()
Deletes or archives old activities from the activity log taking values returned from any ITruncateRestriction implementations into consideration.
Declaration
Task<int> TruncateAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Int32> | An integer indicating how many activities that was removed from the activity log. |
Remarks
This method does not guarantee that all potential items have been truncated after completion. Run multiple times and check the return value for an indication if the log has been truncated to the full extent.