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
nextWorkflowInboundInterceptorNext interceptor in the chain.
Properties
Next
Gets the next interceptor in the chain.
protected WorkflowInboundInterceptor Next { get; }
Property Value
Methods
ExecuteWorkflowAsync(ExecuteWorkflowInput)
Intercept workflow execution.
public virtual Task<object?> ExecuteWorkflowAsync(ExecuteWorkflowInput input)
Parameters
inputExecuteWorkflowInputInput details of the call.
Returns
HandleQuery(HandleQueryInput)
Intercept query handling.
public virtual object? HandleQuery(HandleQueryInput input)
Parameters
inputHandleQueryInputInput details of the call.
Returns
- object
Query result.
HandleSignalAsync(HandleSignalInput)
Intercept signal handling.
public virtual Task HandleSignalAsync(HandleSignalInput input)
Parameters
inputHandleSignalInputInput details of the call.
Returns
- Task
Completed signal task.
HandleUpdateAsync(HandleUpdateInput)
Intercept update handling.
public virtual Task<object?> HandleUpdateAsync(HandleUpdateInput input)
Parameters
inputHandleUpdateInputInput details of the call.
Returns
Init(WorkflowOutboundInterceptor)
Initialize with an outbound interceptor.
public virtual void Init(WorkflowOutboundInterceptor outbound)
Parameters
outboundWorkflowOutboundInterceptorOutbound 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
inputHandleUpdateInputInput details of the call.