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
ActivityInboundInterceptorNext interceptor in the chain.
Properties
Next
Gets the next interceptor in the chain.
protected ActivityInboundInterceptor Next { get; }
Property Value
Methods
ExecuteActivityAsync(ExecuteActivityInput)
Intercept activity execution.
public virtual Task<object?> ExecuteActivityAsync(ExecuteActivityInput input)
Parameters
input
ExecuteActivityInputInput details of the call.
Returns
Init(ActivityOutboundInterceptor)
Initialize with an outbound interceptor.
public virtual void Init(ActivityOutboundInterceptor outbound)
Parameters
outbound
ActivityOutboundInterceptorOutbound interceptor to initialize with.
Remarks
To add a custom outbound interceptor, wrap the given outbound before sending to the next "Init" call.