FindMyFiles

FindMyFiles.Engine

EngineClientFactory Class

Engine transport selection, in priority order: CLI flags (--fake-engine / --engine=pipe|inproc / --pipe-name=…) > settings.json "engine" > auto. Auto probes the service pipe for 250ms (through Hello) and falls back to the in-proc FFI engine when no service answers.

public static class EngineClientFactory

Inheritance System.Object → EngineClientFactory

Methods

EngineClientFactory.Resolve(string[]) Method

Called once at startup; resolves and returns a single engine implementation by the priority above. When in-proc is unavailable (no service plus not elevated), degrades to the empty engine (CreateEmpty()) and steers the UI to the setup screen (no auto-runas).

public static FindMyFiles.Engine.IEngineClient Resolve(string[] args);

Parameters

args System.String[]

Process command-line args (reads `--fake-engine` / `--engine=` / `--pipe-name=`).

Returns

IEngineClient
The single chosen IEngineClient implementation instance.