Interface IProcessInfoResolver
- Namespace
- Fluxzy.Utils.ProcessTracking
- Assembly
- Fluxzy.Core.dll
Resolves the process behind a downstream connection. The default implementation reads the local OS TCP table. Callers fronting the proxy with a transparent tunnel (for example tun2socks over SOCKS5) can provide their own to map a connection back to the real process.
public interface IProcessInfoResolver
Methods
ResolveAsync(ProcessResolutionContext, CancellationToken)
Returns the process owning context, or null when it cannot be determined.
Called once per downstream connection when process tracking is enabled.
ValueTask<ProcessInfo?> ResolveAsync(ProcessResolutionContext context, CancellationToken token)
Parameters
contextProcessResolutionContexttokenCancellationToken