Skip to content

Commit

Permalink
Add RuntimeManager.GetRuntimeInfo()
Browse files Browse the repository at this point in the history
  • Loading branch information
Ybalrid committed Jun 26, 2022
1 parent bd207a7 commit a8137c8
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,5 +213,13 @@ public RuntimeManager()
Debug.Print($"Found runtime {availableRuntime.Key}");
}
}

public Runtime GetRuntimeInfo(string name)
{
if (_availableRuntimes.TryGetValue(name, out Runtime value))
return value;

throw new InvalidOperationException("That runtime does not exist");
}
}
}

0 comments on commit a8137c8

Please sign in to comment.