Used in communication between host and Workflow activities. Represents an event from DataFactory.

Namespace:  EPiServer.WorkflowFoundation.Activities
Assembly:  EPiServer.WorkflowFoundation (in EPiServer.WorkflowFoundation.dll) Version: 6.0.530.0

Syntax

C#
[SerializableAttribute]
public class WorkflowPageEventArgs : ExternalDataEventArgs

Remarks

The cached item of type PageEventArgs can be recieved from CacheService using IServiceProvider (can be recieved e.g. by overriding Initialize on Workflow class).

Examples

Shows how Cache service can be used
CopyC#
public class CustomWorkflow : SequentialWorkflowActivity
{
    CacheService _cacheService;

    protected override void Initialize(System.IServiceProvider provider)
    {
        base.Initialize(provider);
        _cacheService = (CacheService)provider.GetService(typeof(CacheService));
    }

    //Event handler for a page related event activity
    private void OnPageEvent(object sender, WorkflowPageEventArgs e)
    {
        PageEventArgs pageArgs = (PageEventArgs)_cacheService.GetItem(e.CacheKey);
        string pageName = pageArgs.Page.PageName;
    }
}

Inheritance Hierarchy

System..::.Object
  System..::.EventArgs
    System.Workflow.Activities..::.ExternalDataEventArgs
      EPiServer.WorkflowFoundation.Activities..::.WorkflowPageEventArgs

See Also