Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
 /// <summary>
 /// Raises the Executed event.
 /// </summary>
 /// <param name="e">The ExecutableEventArgs.</param>
 protected virtual void OnExecuted(ExecutableEventArgs e)
 {
     Executed?.Invoke(this, e);
 }