Interface IWorkerInterceptor
- Namespace
- Temporalio.Worker.Interceptors
- Assembly
- Temporalio.dll
Interceptor for intercepting activities and workflows.
public interface IWorkerInterceptor
Methods
InterceptActivity(ActivityInboundInterceptor)
Create an activity inbound interceptor to intercept calls.
ActivityInboundInterceptor InterceptActivity(ActivityInboundInterceptor nextInterceptor)
Parameters
nextInterceptorActivityInboundInterceptorThe next interceptor in the chain to call.
Returns
- ActivityInboundInterceptor
Created interceptor.
InterceptNexusOperation(NexusOperationInboundInterceptor)
Create a Nexus operation inbound interceptor to intercept calls.
NexusOperationInboundInterceptor InterceptNexusOperation(NexusOperationInboundInterceptor nextInterceptor)
Parameters
nextInterceptorNexusOperationInboundInterceptorThe next interceptor in the chain to call.
Returns
- NexusOperationInboundInterceptor
Created interceptor.
Remarks
WARNING: Nexus support is experimental.
InterceptWorkflow(WorkflowInboundInterceptor)
Create a workflow inbound interceptor to intercept calls.
WorkflowInboundInterceptor InterceptWorkflow(WorkflowInboundInterceptor nextInterceptor)
Parameters
nextInterceptorWorkflowInboundInterceptorThe next interceptor in the chain to call.
Returns
- WorkflowInboundInterceptor
Created interceptor.