mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-07-16 03:22:18 +02:00
Some work on API-side
This commit is contained in:
@ -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.");
|
||||
|
Reference in New Issue
Block a user