Interface IChangeListener<TChangedData, TQueuedData>
Accepts information about changes to objects of type TChangedData
,
and produces data of type TQueuedData
for asychronous processing.
Namespace: EPiServer.Events.ChangeNotification
Assembly: EPiServer.Events.dll
Version: 8.11.0Syntax
public interface IChangeListener<in TChangedData, out TQueuedData> : IChangeListener where TChangedData : class
Type Parameters
Name | Description |
---|---|
TChangedData | The type of data that the listener is notified of changes on. |
TQueuedData | The type of data that the listener will return for asychronous processing. |
Methods
NotifyChange(TChangedData, TChangedData)
Notifies a processor of a change in data of type TChangedData
Declaration
IEnumerable<TQueuedData> NotifyChange(TChangedData before, TChangedData after)
Parameters
Type | Name | Description |
---|---|---|
TChangedData | before | The changed data object, as it was before the change; or null for inserts. |
TChangedData | after | The changed data object, as it was after the change; or null for deletes. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TQueuedData> | An enumeration of data to be processed asynchronously. |
Remarks
While there is not a specified use case for calling this method with two null parameters, implementers should accept return an empty result from such a call, and not raise any exceptions.