src/Misc/EFTools/XmlCore/Model/Commands/Command.cs
/// <summary>
///     Invokes the command in the context of the passed in CommandProcessorContext.  Most of the time, this should only be
///     called by the CommandProcessor class.
/// </summary>
/// <param name="processor">The CommandProcessor that is invoking this command</param>
Invokes the command in the context of the passed in CommandProcessorContext.  Most of the time, this should only be
called by the CommandProcessor class.
Invokes the command in the context of the passed in CommandProcessorContext . Most of the time this should only be called by the CommandProcessor class .
internal void Invoke(CommandProcessor processor)
        {
            CommandProcessor = processor;
            var cpc = CommandProcessor.CommandProcessorContext;
            Debug.Assert(cpc != null, "cpc cannot be null");
            if (Bind(cpc))
            {
                PreInvoke(cpc);
                InvokeInternal(cpc);
                PostInvoke(cpc);
                _commandStatus = CommandStatusValues.Invoked;
            }
            else
            {
                _commandStatus = CommandStatusValues.Unbound;
            }
        }
internal void Invoke ( CommandProcessor processor ) { CommandProcessor = processor ; var cpc = CommandProcessor . CommandProcessorContext ; Debug . Assert ( cpc != null , " " ) ; if ( Bind ( cpc ) ) { PreInvoke ( cpc ) ; InvokeInternal ( cpc ) ; PostInvoke ( cpc ) ; _commandStatus = CommandStatusValues . Invoked ; } else { _commandStatus = CommandStatusValues . Unbound ; } }
Invokes the command in the context of the passed in CommandProcessorContext.
Invokes the command in the context of the passed in CommandProcessorContext .
processor
CommandProcessor
The CommandProcessor that is invoking this command
The CommandProcessor that is invoking this command