Exemplo n.º 1
0
 /// <summary>
 /// Action to apply a batch update to a cache. Multiple update methods can be invoked within a single batch operation.
 /// These operations are invoked within the cache's lock and is therefore thread safe.
 /// The result of the action will produce a single changeset
 /// </summary>
 /// <param name="updateAction">The update action.</param>
 /// <param name="errorHandler">The error handler.</param>
 public void Edit(Action <IIntermediateUpdater <TObject, TKey> > updateAction, Action <Exception> errorHandler = null)
 {
     _innnerCache.UpdateFromIntermediate(updateAction, errorHandler);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Action to apply a batch update to a cache. Multiple update methods can be invoked within a single batch operation.
 /// These operations are invoked within the cache's lock and is therefore thread safe.
 /// The result of the action will produce a single change set.
 /// </summary>
 /// <param name="updateAction">The update action.</param>
 public void Edit(Action <ICacheUpdater <TObject, TKey> > updateAction)
 {
     _innerCache.UpdateFromIntermediate(updateAction);
 }