Show / Hide Table of Contents

Interface IActivityBehavior

Base contract for controlling the execution of activities.

Namespace: Kephas.Workflow.Behaviors
Assembly: Kephas.Workflow.dll
Syntax
public interface IActivityBehavior

Methods

| Improve this Doc View Source

AfterExecuteAsync(IActivityContext, CancellationToken)

Interception called after invoking the service to execute the activity.

Declaration
Task AfterExecuteAsync(IActivityContext context, CancellationToken token)
Parameters
Type Name Description
IActivityContext context

The execution context.

System.Threading.CancellationToken token

The cancellation token.

Returns
Type Description
System.Threading.Tasks.Task

The asynchronous result.

Remarks

The context will contain the response returned by the service. The interceptor may change the response or even replace it with another one.

| Improve this Doc View Source

BeforeExecuteAsync(IActivityContext, CancellationToken)

Interception called before invoking the service to execute the activity.

Declaration
Task BeforeExecuteAsync(IActivityContext context, CancellationToken token)
Parameters
Type Name Description
IActivityContext context

The execution context.

System.Threading.CancellationToken token

The cancellation token.

Returns
Type Description
System.Threading.Tasks.Task

The asynchronous result.

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX