/// <summary> /// Raises the Executed event and clears the operation cache. /// </summary> /// <param name="e">The ExecutableEventArgs.</param> protected virtual void OnExecuted(ExecutableEventArgs e) { if (clearCache && e.Executable is IOperation operation) { OperationCache cache = new OperationCache(operation); cache.Clear(); } Executed?.Invoke(this, e); }
/// <summary> /// Raises the Executed event. /// </summary> /// <param name="e">The ExecutableEventArgs.</param> protected virtual void OnExecuted(ExecutableEventArgs e) { Executed?.Invoke(this, e); }