console: support removing entries

This commit is contained in:
goat 2024-06-07 19:58:04 +02:00
parent 34d1041a69
commit 2bee234257

View file

@ -118,6 +118,9 @@ internal partial class ConsoleManager : IServiceType
public void RemoveEntry(IConsoleEntry entry)
{
ArgumentNullException.ThrowIfNull(entry);
if (!this.entries.Remove(entry.Name))
throw new EntryNotFoundException(entry.Name);
}
/// <summary>