Class ClientOutboundInterceptor
- Namespace
- Temporalio.Client.Interceptors
- Assembly
- Temporalio.dll
Base class for all outbound interceptors.
public abstract class ClientOutboundInterceptor
- Inheritance
-
ClientOutboundInterceptor
- Inherited Members
Constructors
ClientOutboundInterceptor(ClientOutboundInterceptor)
Initializes a new instance of the ClientOutboundInterceptor class.
protected ClientOutboundInterceptor(ClientOutboundInterceptor next)
Parameters
nextClientOutboundInterceptorNext outbound interceptor in the chain.
Properties
Next
Gets the next interceptor in the chain.
protected ClientOutboundInterceptor Next { get; }
Property Value
Methods
BackfillScheduleAsync(BackfillScheduleInput)
Intercept backfill schedule calls.
public virtual Task BackfillScheduleAsync(BackfillScheduleInput input)
Parameters
inputBackfillScheduleInputInput details of the call.
Returns
- Task
Task for completion.
CancelWorkflowAsync(CancelWorkflowInput)
Intercept cancel workflow calls.
public virtual Task CancelWorkflowAsync(CancelWorkflowInput input)
Parameters
inputCancelWorkflowInputInput details of the call.
Returns
- Task
Task for acceptance of the cancel.
CompleteAsyncActivityAsync(CompleteAsyncActivityInput)
Intercept async activity complete calls.
public virtual Task CompleteAsyncActivityAsync(CompleteAsyncActivityInput input)
Parameters
inputCompleteAsyncActivityInputInput details of the call.
Returns
- Task
Task completion.
CountWorkflowsAsync(CountWorkflowsInput)
Intercept counting workflows.
public virtual Task<WorkflowExecutionCount> CountWorkflowsAsync(CountWorkflowsInput input)
Parameters
inputCountWorkflowsInputInput details of the call.
Returns
- Task<WorkflowExecutionCount>
Count information for the workflows.
CreateScheduleAsync(CreateScheduleInput)
Intercept create schedule calls.
public virtual Task<ScheduleHandle> CreateScheduleAsync(CreateScheduleInput input)
Parameters
inputCreateScheduleInputInput details of the call.
Returns
- Task<ScheduleHandle>
Schedule handle.
DeleteScheduleAsync(DeleteScheduleInput)
Intercept delete schedule calls.
public virtual Task DeleteScheduleAsync(DeleteScheduleInput input)
Parameters
inputDeleteScheduleInputInput details of the call.
Returns
- Task
Task for completion.
DescribeScheduleAsync(DescribeScheduleInput)
Intercept describe schedule calls.
public virtual Task<ScheduleDescription> DescribeScheduleAsync(DescribeScheduleInput input)
Parameters
inputDescribeScheduleInputInput details of the call.
Returns
- Task<ScheduleDescription>
Schedule description.
DescribeWorkflowAsync(DescribeWorkflowInput)
Intercept describe workflow calls.
public virtual Task<WorkflowExecutionDescription> DescribeWorkflowAsync(DescribeWorkflowInput input)
Parameters
inputDescribeWorkflowInputInput details of the call.
Returns
- Task<WorkflowExecutionDescription>
Workflow execution description.
FailAsyncActivityAsync(FailAsyncActivityInput)
Intercept async activity fail calls.
public virtual Task FailAsyncActivityAsync(FailAsyncActivityInput input)
Parameters
inputFailAsyncActivityInputInput details of the call.
Returns
- Task
Task completion.
FetchWorkflowHistoryEventPageAsync(FetchWorkflowHistoryEventPageInput)
Intercept a history event page fetch.
public virtual Task<WorkflowHistoryEventPage> FetchWorkflowHistoryEventPageAsync(FetchWorkflowHistoryEventPageInput input)
Parameters
inputFetchWorkflowHistoryEventPageInputInput details of the call.
Returns
- Task<WorkflowHistoryEventPage>
Event page. This will not return an empty event set and a next page token.
GetWorkerBuildIdCompatibilityAsync(GetWorkerBuildIdCompatibilityInput)
Intercept get worker build id compatability calls.
public virtual Task<WorkerBuildIdVersionSets?> GetWorkerBuildIdCompatibilityAsync(GetWorkerBuildIdCompatibilityInput input)
Parameters
inputGetWorkerBuildIdCompatibilityInputInput details of the call.
Returns
- Task<WorkerBuildIdVersionSets>
The sets, if the Task Queue is versioned, otherwise null.
GetWorkerTaskReachabilityAsync(GetWorkerTaskReachabilityInput)
Intercept get worker build id compatability calls.
public virtual Task<WorkerTaskReachability> GetWorkerTaskReachabilityAsync(GetWorkerTaskReachabilityInput input)
Parameters
inputGetWorkerTaskReachabilityInputInput details of the call.
Returns
- Task<WorkerTaskReachability>
The reachability information.
HeartbeatAsyncActivityAsync(HeartbeatAsyncActivityInput)
Intercept async activity heartbeat calls.
public virtual Task HeartbeatAsyncActivityAsync(HeartbeatAsyncActivityInput input)
Parameters
inputHeartbeatAsyncActivityInputInput details of the call.
Returns
- Task
Task completion.
ListSchedulesAsync(ListSchedulesInput)
Intercept list schedules calls.
public virtual IAsyncEnumerable<ScheduleListDescription> ListSchedulesAsync(ListSchedulesInput input)
Parameters
inputListSchedulesInputInput details of the call.
Returns
- IAsyncEnumerable<ScheduleListDescription>
Schedule enumerable.
ListWorkflowsAsync(ListWorkflowsInput)
Intercept listing workflows.
public virtual IAsyncEnumerable<WorkflowExecution> ListWorkflowsAsync(ListWorkflowsInput input)
Parameters
inputListWorkflowsInputInput details of the call.
Returns
- IAsyncEnumerable<WorkflowExecution>
Async enumerator for the workflows.
Remarks
This method only gets called by ListWorkflowsAsync(string, WorkflowListOptions?). It does not get called by ListWorkflowsPaginatedAsync(string, byte[]?, WorkflowListPaginatedOptions?). This method is called before the first page is fetched. Afterwards, before each page fetched (including before the first page), ListWorkflowsPaginatedAsync(ListWorkflowsPaginatedInput) is called.
ListWorkflowsPaginatedAsync(ListWorkflowsPaginatedInput)
Intercept page fetch for list workflows calls.
public virtual Task<WorkflowListPage> ListWorkflowsPaginatedAsync(ListWorkflowsPaginatedInput input)
Parameters
inputListWorkflowsPaginatedInputInput details of the call.
Returns
- Task<WorkflowListPage>
A single page of query results.
Remarks
This method is called each time ListWorkflowsPaginatedAsync(string, byte[]?, WorkflowListPaginatedOptions?) is called. It also gets called for each page fetched when iterating the enumerable returned by ListWorkflowsAsync(string, WorkflowListOptions?).
PauseScheduleAsync(PauseScheduleInput)
Intercept pause schedule calls.
public virtual Task PauseScheduleAsync(PauseScheduleInput input)
Parameters
inputPauseScheduleInputInput details of the call.
Returns
- Task
Task for completion.
QueryWorkflowAsync<TResult>(QueryWorkflowInput)
Intercept query workflow calls.
public virtual Task<TResult> QueryWorkflowAsync<TResult>(QueryWorkflowInput input)
Parameters
inputQueryWorkflowInputInput details of the call.
Returns
- Task<TResult>
Result of the query.
Type Parameters
TResultReturn type of the query.
ReportCancellationAsyncActivityAsync(ReportCancellationAsyncActivityInput)
Intercept async activity report cancellation calls.
public virtual Task ReportCancellationAsyncActivityAsync(ReportCancellationAsyncActivityInput input)
Parameters
inputReportCancellationAsyncActivityInputInput details of the call.
Returns
- Task
Task completion.
SignalWorkflowAsync(SignalWorkflowInput)
Intercept signal workflow calls.
public virtual Task SignalWorkflowAsync(SignalWorkflowInput input)
Parameters
inputSignalWorkflowInputInput details of the call.
Returns
- Task
Task for acceptance of the signal.
StartUpdateWithStartWorkflowAsync<TUpdateResult>(StartUpdateWithStartWorkflowInput)
Intercept start update with start workflow calls.
public virtual Task<WorkflowUpdateHandle<TUpdateResult>> StartUpdateWithStartWorkflowAsync<TUpdateResult>(StartUpdateWithStartWorkflowInput input)
Parameters
inputStartUpdateWithStartWorkflowInputInput details of the call.
Returns
- Task<WorkflowUpdateHandle<TUpdateResult>>
Handle for the update.
Type Parameters
TUpdateResultUpdate result type.
StartWorkflowAsync<TWorkflow, TResult>(StartWorkflowInput)
Intercept start workflow calls.
public virtual Task<WorkflowHandle<TWorkflow, TResult>> StartWorkflowAsync<TWorkflow, TResult>(StartWorkflowInput input)
Parameters
inputStartWorkflowInputInput details of the call.
Returns
- Task<WorkflowHandle<TWorkflow, TResult>>
Handle for the workflow.
Type Parameters
TWorkflowWorkflow class type. May be ValueTuple if unknown.
TResultResult type of the workflow. May be ValueTuple if unknown.
StartWorkflowUpdateAsync<TResult>(StartWorkflowUpdateInput)
Intercept start workflow update calls.
public virtual Task<WorkflowUpdateHandle<TResult>> StartWorkflowUpdateAsync<TResult>(StartWorkflowUpdateInput input)
Parameters
inputStartWorkflowUpdateInputInput details of the call.
Returns
- Task<WorkflowUpdateHandle<TResult>>
Handle for the update.
Type Parameters
TResultReturn type of the update. This may be ValueTuple if user is discarding result.
TerminateWorkflowAsync(TerminateWorkflowInput)
Intercept terminate workflow calls.
public virtual Task TerminateWorkflowAsync(TerminateWorkflowInput input)
Parameters
inputTerminateWorkflowInputInput details of the call.
Returns
- Task
Task for termination completion.
TriggerScheduleAsync(TriggerScheduleInput)
Intercept trigger schedule calls.
public virtual Task TriggerScheduleAsync(TriggerScheduleInput input)
Parameters
inputTriggerScheduleInputInput details of the call.
Returns
- Task
Task for completion.
UnpauseScheduleAsync(UnpauseScheduleInput)
Intercept unpause schedule calls.
public virtual Task UnpauseScheduleAsync(UnpauseScheduleInput input)
Parameters
inputUnpauseScheduleInputInput details of the call.
Returns
- Task
Task for completion.
UpdateScheduleAsync(UpdateScheduleInput)
Intercept update schedule calls.
public virtual Task UpdateScheduleAsync(UpdateScheduleInput input)
Parameters
inputUpdateScheduleInputInput details of the call.
Returns
- Task
Task for completion.
UpdateWorkerBuildIdCompatibilityAsync(UpdateWorkerBuildIdCompatibilityInput)
Intercept update worker build id compatability calls.
public virtual Task UpdateWorkerBuildIdCompatibilityAsync(UpdateWorkerBuildIdCompatibilityInput input)
Parameters
inputUpdateWorkerBuildIdCompatibilityInputInput details of the call.
Returns
- Task
Completion task.