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
WorkflowInboundInterceptorNext 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
input
ExecuteWorkflowInputInput details of the call.
Returns
HandleQuery(HandleQueryInput)
Intercept query handling.
public virtual object? HandleQuery(HandleQueryInput input)
Parameters
input
HandleQueryInputInput details of the call.
Returns
- object
Query result.
HandleSignalAsync(HandleSignalInput)
Intercept signal handling.
public virtual Task HandleSignalAsync(HandleSignalInput input)
Parameters
input
HandleSignalInputInput details of the call.
Returns
- Task
Completed signal task.
Init(WorkflowOutboundInterceptor)
Initialize with an outbound interceptor.
public virtual void Init(WorkflowOutboundInterceptor outbound)
Parameters
outbound
WorkflowOutboundInterceptorOutbound interceptor to initialize with.
Remarks
To add a custom outbound interceptor, wrap the given outbound before sending to the next "Init" call.