public DriverService() { _library_dir = IOExt.GetAssemblyDirectory(); _arguments = new List <string>(); _temp_folder = GetTempFolder(); _endpoint = EndPointExt.Create(IPAddress.Loopback, false); }
public void Start(IEnumerable arguments, Dictionary preferences, IEnumerable extensions, Dictionary capabilities, string profile, bool persistant) { this.Arguments = arguments; this.Preferences = preferences; this.Extensions = extensions; this.Capabilities = capabilities; this.Profile = profile; this.Persistant = persistant; string debugAddress; if (capabilities.TryGetValue("debuggerAddress", out debugAddress)) { _endpoint = EndPointExt.Parse(debugAddress); return; } _endpoint = EndPointExt.Create(IPAddress.Loopback, false); Thread thread = new Thread(RunStart); thread.Start(); thread.Join(); if (_exception != null) { throw _exception; } }