1
0
mirror of https://github.com/C9Glax/tranga.git synced 2025-07-16 19:42:16 +02:00

Some work on API-side

This commit is contained in:
2023-05-20 17:18:22 +02:00
parent a6a2d20981
commit 1916018fba
2 changed files with 55 additions and 20 deletions
Tranga-API
Tranga

@ -193,6 +193,8 @@ public class TaskManager
/// <exception cref="Exception">If Connector is not available</exception>
public Connector GetConnector(string connectorName)
{
if(connectorName is null)
throw new Exception($"connectorName can not be null");
Connector? ret = this._connectors.FirstOrDefault(connector => connector.name == connectorName);
if (ret is null)
throw new Exception($"Connector {connectorName} is not an available Connector.");