Table of Contents

Class ActivityInboundInterceptor

Namespace
Temporalio.Worker.Interceptors
Assembly
Temporalio.dll

Inbound interceptor to intercept activity calls coming from the server.

public abstract class ActivityInboundInterceptor
Inheritance
ActivityInboundInterceptor
Inherited Members

Constructors

ActivityInboundInterceptor(ActivityInboundInterceptor)

Initializes a new instance of the ActivityInboundInterceptor class.

protected ActivityInboundInterceptor(ActivityInboundInterceptor next)

Parameters

next ActivityInboundInterceptor

Next interceptor in the chain.

Properties

Next

Gets the next interceptor in the chain.

protected ActivityInboundInterceptor Next { get; }

Property Value

ActivityInboundInterceptor

Methods

ExecuteActivityAsync(ExecuteActivityInput)

Intercept activity execution.

public virtual Task<object?> ExecuteActivityAsync(ExecuteActivityInput input)

Parameters

input ExecuteActivityInput

Input details of the call.

Returns

Task<object>

Completed activity result.

Init(ActivityOutboundInterceptor)

Initialize with an outbound interceptor.

public virtual void Init(ActivityOutboundInterceptor outbound)

Parameters

outbound ActivityOutboundInterceptor

Outbound interceptor to initialize with.

Remarks

To add a custom outbound interceptor, wrap the given outbound before sending to the next "Init" call.