Esempio n. 1
0
 /// <inheritdoc />
 /// <summary>
 /// Add, update and remove api via an action method. Enables the consumer to perform queries and updates
 /// safely within the inner caches lock.
 /// The result of the action will produce appropriate notifications.
 /// </summary>
 /// <param name="updateAction">The update action.</param>
 public void Edit(Action <ISourceUpdater <TObject, TKey> > updateAction)
 {
     _innerCache.UpdateFromSource(updateAction);
 }
Esempio n. 2
0
 /// <summary>
 /// Add, update and remove api via an action method. Enables the consumer to perform queries and updates
 /// safely within the innner caches lock.
 /// The result of the action will produce appropriate notifications.
 /// </summary>
 /// <param name="updateAction">The update action.</param>
 /// <param name="errorHandler">The error handler.</param>
 public void Edit(Action <ISourceUpdater <TObject, TKey> > updateAction, Action <Exception> errorHandler = null)
 {
     _innnerCache.UpdateFromSource(updateAction, errorHandler);
 }