Table of Contents

Class WorkflowInboundInterceptor

Namespace
Temporalio.Worker.Interceptors
Assembly
Temporalio.dll

Inbound interceptor to intercept workflow calls coming from the server.

public abstract class WorkflowInboundInterceptor
Inheritance
WorkflowInboundInterceptor
Inherited Members

Constructors

WorkflowInboundInterceptor(WorkflowInboundInterceptor)

Initializes a new instance of the WorkflowInboundInterceptor class.

protected WorkflowInboundInterceptor(WorkflowInboundInterceptor next)

Parameters

next WorkflowInboundInterceptor

Next interceptor in the chain.

Properties

Next

Gets the next interceptor in the chain.

protected WorkflowInboundInterceptor Next { get; }

Property Value

WorkflowInboundInterceptor

Methods

ExecuteWorkflowAsync(ExecuteWorkflowInput)

Intercept workflow execution.

public virtual Task<object?> ExecuteWorkflowAsync(ExecuteWorkflowInput input)

Parameters

input ExecuteWorkflowInput

Input details of the call.

Returns

Task<object>

Completed workflow result.

HandleQuery(HandleQueryInput)

Intercept query handling.

public virtual object? HandleQuery(HandleQueryInput input)

Parameters

input HandleQueryInput

Input details of the call.

Returns

object

Query result.

HandleSignalAsync(HandleSignalInput)

Intercept signal handling.

public virtual Task HandleSignalAsync(HandleSignalInput input)

Parameters

input HandleSignalInput

Input details of the call.

Returns

Task

Completed signal task.

HandleUpdateAsync(HandleUpdateInput)

Intercept update handling.

public virtual Task<object?> HandleUpdateAsync(HandleUpdateInput input)

Parameters

input HandleUpdateInput

Input details of the call.

Returns

Task<object>

Update result.

Init(WorkflowOutboundInterceptor)

Initialize with an outbound interceptor.

public virtual void Init(WorkflowOutboundInterceptor outbound)

Parameters

outbound WorkflowOutboundInterceptor

Outbound interceptor to initialize with.

Remarks

To add a custom outbound interceptor, wrap the given outbound before sending to the next "Init" call.

ValidateUpdate(HandleUpdateInput)

Intercept update validation. This is invoked every time validation is needed regardless of whether a validator was defined.

public virtual void ValidateUpdate(HandleUpdateInput input)

Parameters

input HandleUpdateInput

Input details of the call.