Workflow Dependency Property - Event handler usage

What would the 'workflow dependency property event handler' be used for Or rather a scenario

Thanks!



Answer this question

Workflow Dependency Property - Event handler usage

  • Foolios

    protected override ActivityExecutionStatus Execute(ActivityExecutionContext executionContext)

    {

    RaiseEvent(BeforeEvent, this, EventArgs.Empty);

    // Do stuff here

    RaiseEvent(AfterEvent, this, EventArgs.Empty);

    return ActivityExecutionStatus.Closed;

    }



  • iamme

    Maybe you want a before and / or after event handler like with the InvokeWebServiceActivity and Replicator to allow the user do some preconfiguration before the operation / child is executed and retrieve some result after.

  • Ying06

    Ok. So, how would I make it so that one event would be called before and the other after the call to my activity I understand how this could be useful now.

    Thanks!


  • Workflow Dependency Property - Event handler usage