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
nextWorkflowOutboundInterceptorNext interceptor in the chain.
Properties
Next
Gets the next interceptor in the chain.
protected WorkflowOutboundInterceptor Next { get; }
Property Value
Methods
CancelExternalWorkflowAsync(CancelExternalWorkflowInput)
Intercept cancel external workflow.
public virtual Task CancelExternalWorkflowAsync(CancelExternalWorkflowInput input)
Parameters
inputCancelExternalWorkflowInputInput details of the call.
Returns
- Task
Task for completion.
CreateContinueAsNewException(CreateContinueAsNewExceptionInput)
Intercept continue as new exception creation.
public virtual ContinueAsNewException CreateContinueAsNewException(CreateContinueAsNewExceptionInput input)
Parameters
inputCreateContinueAsNewExceptionInputInput details of the call.
Returns
- ContinueAsNewException
Created exception.
DelayAsync(DelayAsyncInput)
Intercept starting a new timer.
public virtual Task DelayAsync(DelayAsyncInput input)
Parameters
inputDelayAsyncInputInput 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
inputScheduleActivityInputInput details of the call.
Returns
- Task<TResult>
Activity result.
Type Parameters
TResultActivity result type.
ScheduleLocalActivityAsync<TResult>(ScheduleLocalActivityInput)
Intercept scheduling a local activity.
public virtual Task<TResult> ScheduleLocalActivityAsync<TResult>(ScheduleLocalActivityInput input)
Parameters
inputScheduleLocalActivityInputInput details of the call.
Returns
- Task<TResult>
Activity result.
Type Parameters
TResultActivity result type.
SignalChildWorkflowAsync(SignalChildWorkflowInput)
Intercept sending of a child workflow signal.
public virtual Task SignalChildWorkflowAsync(SignalChildWorkflowInput input)
Parameters
inputSignalChildWorkflowInputInput 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
inputSignalExternalWorkflowInputInput 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
inputStartChildWorkflowInputInput details of the call.
Returns
- Task<ChildWorkflowHandle<TWorkflow, TResult>>
Child handle.
Type Parameters
TWorkflowWorkflow class type. May be ValueTuple if unknown.
TResultResult type of the workflow. May be ValueTuple if unknown.
StartNexusOperationAsync<TResult>(StartNexusOperationInput)
Intercept starting a Nexus operation. To intercept other Nexus calls, the handle can be extended/customized.
public virtual Task<NexusOperationHandle<TResult>> StartNexusOperationAsync<TResult>(StartNexusOperationInput input)
Parameters
inputStartNexusOperationInputInput details of the call.
Returns
- Task<NexusOperationHandle<TResult>>
Operation handle.
Type Parameters
TResultResult type of the operation.
Remarks
WARNING: Nexus support is experimental.