SaaS CMS has officially launched! Learn more now.

Class CompositeCustomBase<T>

Base class for custom activities that wants to use EventTrackingService to track which instances that currently is waiting for a specific event

Inheritance
System.Object
CompositeCustomBase<T>
Implements
System.Workflow.Activities.IEventActivity
Namespace: EPiServer.WorkflowFoundation.Activities
Assembly: EPiServer.WorkflowFoundation.dll
Version: 7.19.2
Syntax
public abstract class CompositeCustomBase<T> : CompositeEventBase<T>, IEventActivity, ICompositeCustomActivity, ICompositeActivity where T : HandleExternalEventActivity, new()
Type Parameters
Name Description
T

activity inherited from HandleExternalActivity

Examples

Shows a sample over how a custom event activity uses this class to register itself with EventTrackingService

And this shows how EventTrackingService can be used to query which instances that currently is registered for the event

Constructors

CompositeCustomBase()

Initializes a new instance of the CompositePageBase<T> class.

Declaration
protected CompositeCustomBase()

Fields

InvokedEvent

invoked event

Declaration
public static DependencyProperty InvokedEvent
Field Value
Type Description
System.Workflow.ComponentModel.DependencyProperty

Methods

EventActivity_Invoked(Object, ExternalDataEventArgs)

Handles the Invoked event of the EventActivity control.

Declaration
protected virtual void EventActivity_Invoked(object sender, ExternalDataEventArgs e)
Parameters
Type Name Description
System.Object sender

The source of the event.

System.Workflow.Activities.ExternalDataEventArgs e

The System.Workflow.Activities.ExternalDataEventArgs instance containing the event data.

RegisterEvent(Object, EventArgs)

Register event with EventTrackingService so host knows that this instance waits for event

Declaration
protected override void RegisterEvent(object sender, EventArgs e)
Parameters
Type Name Description
System.Object sender

The sender.

System.EventArgs e

The System.EventArgs instance containing the event data.

Overrides
EPiServer.WorkflowFoundation.Activities.CompositeEventBase<T>.RegisterEvent(System.Object, System.EventArgs)
Remarks

It will register name of type InterfaceName.EventName

Examples

Shows how EventTrackingService can be used to query which instances that currently is registered for the event

UnregisterEvent(Object, EventArgs)

Unregister event with EventTrackingService

Declaration
protected override void UnregisterEvent(object sender, EventArgs e)
Parameters
Type Name Description
System.Object sender

The sender.

System.EventArgs e

The System.EventArgs instance containing the event data.

Overrides
EPiServer.WorkflowFoundation.Activities.CompositeEventBase<T>.UnregisterEvent(System.Object, System.EventArgs)
Remarks

Registered name is of type InterfaceName.EventName

Events

Invoked

Event delegate that is called when event occurs

Declaration
public event EventHandler<ExternalDataEventArgs> Invoked
Event Type
Type Description
System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>

Implements

System.Workflow.Activities.IEventActivity

Extension Methods