Table of Contents

Class WorkflowOutboundInterceptor

Namespace
Temporalio.Worker.Interceptors
Assembly
Temporalio.dll

Outbound interceptor to intercept workflow calls coming from workflows.

public abstract class WorkflowOutboundInterceptor
Inheritance
WorkflowOutboundInterceptor
Inherited Members

Constructors

WorkflowOutboundInterceptor(WorkflowOutboundInterceptor)

Initializes a new instance of the WorkflowOutboundInterceptor class.

protected WorkflowOutboundInterceptor(WorkflowOutboundInterceptor next)

Parameters

next WorkflowOutboundInterceptor

Next interceptor in the chain.

Properties

Next

Gets the next interceptor in the chain.

protected WorkflowOutboundInterceptor Next { get; }

Property Value

WorkflowOutboundInterceptor

Methods

CancelExternalWorkflowAsync(CancelExternalWorkflowInput)

Intercept cancel external workflow.

public virtual Task CancelExternalWorkflowAsync(CancelExternalWorkflowInput input)

Parameters

input CancelExternalWorkflowInput

Input details of the call.

Returns

Task

Task for completion.

CreateContinueAsNewException(CreateContinueAsNewExceptionInput)

Intercept continue as new exception creation.

public virtual ContinueAsNewException CreateContinueAsNewException(CreateContinueAsNewExceptionInput input)

Parameters

input CreateContinueAsNewExceptionInput

Input details of the call.

Returns

ContinueAsNewException

Created exception.

DelayAsync(DelayAsyncInput)

Intercept starting a new timer.

public virtual Task DelayAsync(DelayAsyncInput input)

Parameters

input DelayAsyncInput

Input details of the call.

Returns

Task

Task for completion.

ScheduleActivityAsync<TResult>(ScheduleActivityInput)

Intercept scheduling an activity.

public virtual Task<TResult> ScheduleActivityAsync<TResult>(ScheduleActivityInput input)

Parameters

input ScheduleActivityInput

Input details of the call.

Returns

Task<TResult>

Activity result.

Type Parameters

TResult

Activity result type.

ScheduleLocalActivityAsync<TResult>(ScheduleLocalActivityInput)

Intercept scheduling a local activity.

public virtual Task<TResult> ScheduleLocalActivityAsync<TResult>(ScheduleLocalActivityInput input)

Parameters

input ScheduleLocalActivityInput

Input details of the call.

Returns

Task<TResult>

Activity result.

Type Parameters

TResult

Activity result type.

SignalChildWorkflowAsync(SignalChildWorkflowInput)

Intercept sending of a child workflow signal.

public virtual Task SignalChildWorkflowAsync(SignalChildWorkflowInput input)

Parameters

input SignalChildWorkflowInput

Input details of the call.

Returns

Task

Task for completion.

SignalExternalWorkflowAsync(SignalExternalWorkflowInput)

Intercept sending of an external workflow signal.

public virtual Task SignalExternalWorkflowAsync(SignalExternalWorkflowInput input)

Parameters

input SignalExternalWorkflowInput

Input details of the call.

Returns

Task

Task for completion.

StartChildWorkflowAsync<TWorkflow, TResult>(StartChildWorkflowInput)

Intercept starting a child workflow. To intercept other child workflow calls, the handle can be extended/customized.

public virtual Task<ChildWorkflowHandle<TWorkflow, TResult>> StartChildWorkflowAsync<TWorkflow, TResult>(StartChildWorkflowInput input)

Parameters

input StartChildWorkflowInput

Input details of the call.

Returns

Task<ChildWorkflowHandle<TWorkflow, TResult>>

Child handle.

Type Parameters

TWorkflow

Workflow class type. May be ValueTuple if unknown.

TResult

Result type of the workflow. May be ValueTuple if unknown.