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
WorkflowOutboundInterceptorNext 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
input
CancelExternalWorkflowInputInput 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
CreateContinueAsNewExceptionInputInput details of the call.
Returns
- ContinueAsNewException
Created exception.
DelayAsync(DelayAsyncInput)
Intercept starting a new timer.
public virtual Task DelayAsync(DelayAsyncInput input)
Parameters
input
DelayAsyncInputInput 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
ScheduleActivityInputInput 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
ScheduleLocalActivityInputInput 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
SignalChildWorkflowInputInput 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
SignalExternalWorkflowInputInput 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
StartChildWorkflowInputInput 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.