Class ClientOutboundInterceptor
Base class for all outbound interceptors.
Namespace: Temporalio.Client.Interceptors
Assembly: Temporalio.dll
Syntax
public abstract class ClientOutboundInterceptor : object
Constructors
ClientOutboundInterceptor(ClientOutboundInterceptor)
Initializes a new instance of the ClientOutboundInterceptor class.
Declaration
protected ClientOutboundInterceptor(ClientOutboundInterceptor next)
Parameters
Type | Name | Description |
---|---|---|
ClientOutboundInterceptor | next | Next outbound interceptor in the chain. |
Properties
Next
Gets the next interceptor in the chain.
Declaration
protected ClientOutboundInterceptor Next { get; }
Property Value
Type | Description |
---|---|
ClientOutboundInterceptor |
Methods
CancelWorkflowAsync(CancelWorkflowInput)
Intercept cancel workflow calls.
Declaration
public virtual Task CancelWorkflowAsync(CancelWorkflowInput input)
Parameters
Type | Name | Description |
---|---|---|
CancelWorkflowInput | input | Input details of the call. |
Returns
Type | Description |
---|---|
Task | Task for acceptance of the cancel. |
CompleteAsyncActivityAsync(CompleteAsyncActivityInput)
Intercept async activity complete calls.
Declaration
public virtual Task CompleteAsyncActivityAsync(CompleteAsyncActivityInput input)
Parameters
Type | Name | Description |
---|---|---|
CompleteAsyncActivityInput | input | Input details of the call. |
Returns
Type | Description |
---|---|
Task | Task completion. |
DescribeWorkflowAsync(DescribeWorkflowInput)
Intercept describe workflow calls.
Declaration
public virtual Task<WorkflowExecutionDescription> DescribeWorkflowAsync(DescribeWorkflowInput input)
Parameters
Type | Name | Description |
---|---|---|
DescribeWorkflowInput | input | Input details of the call. |
Returns
Type | Description |
---|---|
Task<WorkflowExecutionDescription> | Workflow execution description. |
FailAsyncActivityAsync(FailAsyncActivityInput)
Intercept async activity fail calls.
Declaration
public virtual Task FailAsyncActivityAsync(FailAsyncActivityInput input)
Parameters
Type | Name | Description |
---|---|---|
FailAsyncActivityInput | input | Input details of the call. |
Returns
Type | Description |
---|---|
Task | Task completion. |
FetchWorkflowHistoryEventPageAsync(FetchWorkflowHistoryEventPageInput)
Intercept a history event page fetch.
Declaration
public virtual Task<WorkflowHistoryEventPage> FetchWorkflowHistoryEventPageAsync(FetchWorkflowHistoryEventPageInput input)
Parameters
Type | Name | Description |
---|---|---|
FetchWorkflowHistoryEventPageInput | input | Input details of the call. |
Returns
Type | Description |
---|---|
Task<WorkflowHistoryEventPage> | Event page. This will not return an empty event set and a next page token. |
HeartbeatAsyncActivityAsync(HeartbeatAsyncActivityInput)
Intercept async activity heartbeat calls.
Declaration
public virtual Task HeartbeatAsyncActivityAsync(HeartbeatAsyncActivityInput input)
Parameters
Type | Name | Description |
---|---|---|
HeartbeatAsyncActivityInput | input | Input details of the call. |
Returns
Type | Description |
---|---|
Task | Task completion. |
QueryWorkflowAsync<TResult>(QueryWorkflowInput)
Intercept query workflow calls.
Declaration
public virtual Task<TResult> QueryWorkflowAsync<TResult>(QueryWorkflowInput input)
Parameters
Type | Name | Description |
---|---|---|
QueryWorkflowInput | input | Input details of the call. |
Returns
Type | Description |
---|---|
Task<TResult> | Result of the query. |
Type Parameters
Name | Description |
---|---|
TResult | Return type of the query. |
ReportCancellationAsyncActivityAsync(ReportCancellationAsyncActivityInput)
Intercept async activity report cancellation calls.
Declaration
public virtual Task ReportCancellationAsyncActivityAsync(ReportCancellationAsyncActivityInput input)
Parameters
Type | Name | Description |
---|---|---|
ReportCancellationAsyncActivityInput | input | Input details of the call. |
Returns
Type | Description |
---|---|
Task | Task completion. |
SignalWorkflowAsync(SignalWorkflowInput)
Intercept signal workflow calls.
Declaration
public virtual Task SignalWorkflowAsync(SignalWorkflowInput input)
Parameters
Type | Name | Description |
---|---|---|
SignalWorkflowInput | input | Input details of the call. |
Returns
Type | Description |
---|---|
Task | Task for acceptance of the signal. |
StartWorkflowAsync<TResult>(StartWorkflowInput)
Intercept start workflow calls.
Declaration
public virtual Task<WorkflowHandle<TResult>> StartWorkflowAsync<TResult>(StartWorkflowInput input)
Parameters
Type | Name | Description |
---|---|---|
StartWorkflowInput | input | Input details of the call. |
Returns
Type | Description |
---|---|
Task<WorkflowHandle<TResult>> | Handle for the workflow. |
Type Parameters
Name | Description |
---|---|
TResult | Result type of the workflow. |
TerminateWorkflowAsync(TerminateWorkflowInput)
Intercept terminate workflow calls.
Declaration
public virtual Task TerminateWorkflowAsync(TerminateWorkflowInput input)
Parameters
Type | Name | Description |
---|---|---|
TerminateWorkflowInput | input | Input details of the call. |
Returns
Type | Description |
---|---|
Task | Task for termination completion. |