Interface for data processing components that can set (create or update) data items.
Description
The ISetter interface is used by data processing components that can set (create or update) data items.
Instance methods
SetAsync
Sets a data item. If the data item exists it updates it, otherwise it creates a new data item.
Task<T> SetAsync(IContext context, T item)
- context: IContext - (optional) a context to trace execution through a call chain.
- item: T - item to be set.
- returns: Task<T> - updated item