private bool TryGetRunnerAtPath()

in JetBrains.Profiler.SelfApi/src/Impl/PrerequisiteBase.cs [236:252]


    private bool TryGetRunnerAtPath(string profilerLocalPath, out string runnerPath)
    {
      var runnerName = GetRunnerName();
      Trace.Verbose("Prerequisite.TryGetRunnerAtPath: `{0}`", runnerName);

      if (!string.IsNullOrEmpty(profilerLocalPath))
      {
        runnerPath = Path.Combine(profilerLocalPath, runnerName);
        Trace.Verbose("Prerequisite.TryGetRunnerAtPath: Looking at `{0}`", runnerPath);
        if (File.Exists(runnerPath))
          return true;
      }

      runnerPath = null;
      Trace.Verbose("Prerequisite.TryGetRunnerAtPath: No runner found.");
      return false;
    }