Interceptor
An interceptor is a middleware component that observes, modifies, or instruments requests, responses, or operations before, during, or after execution.
.NET in Action, Second Edition
An interceptor is a component that observes or modifies an operation before it is sent to an external system.
- How it is used
- Audits SQL generated by EF Core during tests and supports review of potential injection vulnerabilities.
- How deep it goes
- Implements DbCommandInterceptor, ReaderExecutingAsync, test registration, output handling, and ValueTask rationale.
- Examples
- Logs generated book-lookup SQL and uses an in-memory SQLite test context with xUnit output.
- What you can do after
- Diagnose and audit EF Core database commands by capturing generated SQL in tests.
Read how .NET in Action, Second Edition explains interceptor →
gRPC Microservices in Go
A gRPC interceptor is middleware that runs around gRPC calls on the client or server to inspect, modify, or instrument them.
- How it is used
- Centralizes gRPC resilience and observability behavior across microservice call boundaries.
- How deep it goes
- Explains client and server installation, tracing-provider configuration, batching, metadata, and propagation without detailing interceptor internals.
- Examples
- Uses Order-to-Payment calls, unary client and server interceptors, Jaeger export, and Jaeger UI trace inspection.
- What you can do after
- Configure gRPC client and server interceptors to collect, propagate, batch, and export service telemetry.
Related concepts
- retryimplements · A retry is a subsequent attempt to perform an operation after an earlier attempt fails or does not complete successfully.
- security tokenuses · A security token is a credential or assertion presented to a service to convey authenticated identity, authorization, or session information.
- Entity Framework Coreuses · Entity Framework Core is a cross-platform object-relational mapping framework for .NET that enables applications to query and persist data through .NET objects and APIs.
- instrumentationpart of · Instrumentation is the addition or activation of mechanisms in software or systems to observe, measure, or record their behavior during execution.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

