public UnitsyncResourcePresenceChecker(SpringPaths paths, string engine) { if (string.IsNullOrEmpty(engine) || !paths.HasEngineVersion(engine)) { Trace.TraceWarning("Engine {0} not found, trying backup", engine); engine = paths.GetEngineList().FirstOrDefault(); if (engine == null) throw new Exception("No engine found for unitsync"); } unitsync = new UnitSync(paths, engine); }
public UnitSyncer(SpringPaths npaths, string nengine) { Paths = npaths; Engine = nengine; if (string.IsNullOrEmpty(Engine) || !Paths.HasEngineVersion(Engine)) { Trace.TraceWarning("UnitSyncer: Engine {0} not found, trying backup", Engine); Engine = Paths.GetEngineList().FirstOrDefault(); if (Engine == null) throw new Exception("UnitSyncer: No engine found for unitsync"); } }
public UnitsyncResourcePresenceChecker(SpringPaths paths, string engine) { if (string.IsNullOrEmpty(engine) || !paths.HasEngineVersion(engine)) { Trace.TraceWarning("Engine {0} not found, trying backup", engine); engine = paths.GetEngineList().FirstOrDefault(); if (engine == null) { throw new Exception("No engine found for unitsync"); } } unitsync = new UnitSync(paths, engine); }