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
nextInterceptor
ActivityInboundInterceptorThe next interceptor in the chain to call.
Returns
- ActivityInboundInterceptor
Created interceptor.
InterceptWorkflow(WorkflowInboundInterceptor)
Create a workflow inbound interceptor to intercept calls.
WorkflowInboundInterceptor InterceptWorkflow(WorkflowInboundInterceptor nextInterceptor)
Parameters
nextInterceptor
WorkflowInboundInterceptorThe next interceptor in the chain to call.
Returns
- WorkflowInboundInterceptor
Created interceptor.