Interface IWorkerInterceptor
Interceptor for intercepting activities and workflows.
Namespace: Temporalio.Worker.Interceptors
Assembly: Temporalio.dll
Syntax
public interface IWorkerInterceptor
Properties
WorkflowInboundInterceptorType
Gets the optional type of WorkflowInboundInterceptor to instantiate for interception. This type must contain a public constructor accepting a single WorkflowInboundInterceptor parameter for the next interceptor in the chain.
Declaration
Type? WorkflowInboundInterceptorType { get; }
Property Value
Type | Description |
---|---|
Nullable<Type> |
Methods
InterceptActivity(ActivityInboundInterceptor)
Create an activity inbound interceptor to intercept calls.
Declaration
ActivityInboundInterceptor InterceptActivity(ActivityInboundInterceptor nextInterceptor)
Parameters
Type | Name | Description |
---|---|---|
ActivityInboundInterceptor | nextInterceptor | The next interceptor in the chain to call. |
Returns
Type | Description |
---|---|
ActivityInboundInterceptor | Created interceptor. |