Interface IChangeProcessor<TQueuedData>
Describes an asychronous processor for changes in specific types of data.
Inherited Members
Namespace: EPiServer.Events.ChangeNotification
Assembly: EPiServer.Events.dll
Version: 8.11.0Syntax
public interface IChangeProcessor<TQueuedData> : IChangeProcessor
Type Parameters
Name | Description |
---|---|
TQueuedData | The type of data queued by the processor. |
Methods
ProcessItems(IEnumerable<TQueuedData>, CancellationToken)
Processes a batch of queued data.
Declaration
bool ProcessItems(IEnumerable<TQueuedData> items, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TQueuedData> | items | The items to process. |
System.Threading.CancellationToken | cancellationToken | A cancellation token that the implementation may optionally monitor for cancellation requests. |
Returns
Type | Description |
---|---|
System.Boolean | True if the processing is successful, or false if processing encounters an error that may be transient and should be retried later. If an exception is thrown, no retries will be attempted. |