Class InterceptorActivation
- Namespace
- Kuestenlogik.Bowire.Interceptor
- Assembly
- Kuestenlogik.Bowire.Interceptor.dll
Process-singleton flag that records whether
app.UseBowireInterceptor() ran during the host's startup.
The workbench's Intercept rail probes this through
GET /api/intercepted/status to decide whether the Captured /
Live overrides / Settings sub-tabs render their normal content or
the v2.2 "activate the interceptor first" empty state.
public sealed class InterceptorActivation
- Inheritance
-
InterceptorActivation
- Inherited Members
Remarks
Embedded hosts that opt in via UseBowireInterceptor() flip
Activated to true once. Standalone Bowire (the CLI
tool) reaches activation a different way — by starting an
in-process reverse-proxy via the Topbar "Reverse proxy" surface —
so the status endpoint OR-folds this flag with the
ReverseProxyRegistry's running-host count. Either
signal counts as "interceptor active for this workbench's
purposes".
Lifetime is the host process. There is no de-activation path — once the middleware is wired into the pipeline, it stays wired until the process exits. That matches the operator's mental model in both deployment modes.
Constructors
InterceptorActivation()
public InterceptorActivation()
Properties
Activated
Whether UseBowireInterceptor() ran on this host.
public bool Activated { get; }
Property Value
Methods
MarkActivated()
Mark the interceptor as activated. Idempotent.
public void MarkActivated()