Table of Contents

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 ActivityInboundInterceptor

The 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 WorkflowInboundInterceptor

The next interceptor in the chain to call.

Returns

WorkflowInboundInterceptor

Created interceptor.