Пример #1
0
    /// <summary>
    /// Prepares this operation for execution.
    /// </summary>
    /// <returns>ExecutionToken&lt;TCommand, TParameter&gt;.</returns>
    protected OperationExecutionToken <TConnection, TTransaction> Prepare()
    {
        ExecutionTokenPreparing?.Invoke(this, new ExecutionTokenPreparingEventArgs(m_OperationBuilder));

        var executionToken = m_OperationBuilder.Prepare();

        ExecutionTokenPrepared?.Invoke(this, new ExecutionTokenPreparedEventArgs(executionToken));

        return(executionToken);
    }
Пример #2
0
 void PreviousLink_ExecutionTokenPrepared(object?sender, ExecutionTokenPreparedEventArgs e)
 {
     OnExecutionTokenPrepared(e);             //left first
     ExecutionTokenPrepared?.Invoke(this, e); //then right
     e.ExecutionToken.CommandBuilt += ExecutionToken_CommandBuilt;
 }
Пример #3
0
 /// <summary>
 /// Raises the <see cref="ExecutionTokenPrepared" /> event.
 /// </summary>
 /// <param name="e">The <see cref="ExecutionTokenPreparedEventArgs"/> instance containing the event data.</param>
 protected void OnExecutionTokenPrepared(ExecutionTokenPreparedEventArgs e)
 {
     ExecutionTokenPrepared?.Invoke(this, e);
 }
Пример #4
0
 void OnExecutionTokenPrepared(object?sender, ExecutionTokenPreparedEventArgs e)
 {
     ExecutionTokenPrepared?.Invoke(sender, e);
 }