public ProcessApplicationHost(string binFolder, PortManager portManager) { this._portManager = portManager; this._port = portManager.ClaimNext(); this._binFolder = binFolder; this.LaunchHost(); }
static ProcessHostingModel() { KillOrphanedHostProcesses(); SetupRemoting(portManager.ClaimNext()); }