Table of Contents

Delegate Proxy<TIn, TOut>.Interceptor

Namespace
PatternKit.Structural.Proxy
Assembly
PatternKit.Core.dll

Delegate for intercepting calls and controlling access to the subject.

public delegate TOut Proxy<TIn, TOut>.Interceptor(TIn input, Proxy<TIn, TOut>.Subject next)

Parameters

input TIn

The input value.

next Proxy<TIn, TOut>.Subject

Delegate to invoke the real subject (or next interceptor).

Returns

TOut

The result, potentially modified or short-circuited.

Extension Methods

Remarks

The interceptor has full control: it can modify input, skip calling next, modify output, or add cross-cutting concerns like logging, caching, or access control.