public override void ConfigureDeviceApis() { foreach (var connection in Connections) { if (connection.ConnectionSettings.EndPoint is IPEndPoint iPEndPoint) { switch (iPEndPoint.Port) { case 35005: ApiManager.AddApi(new CricketTranscieverApi(connection, new CricketTransceiverSyntax())); break; default: throw new NotSupportedException(); } } } }
public override void ConfigureDeviceApis() { foreach (var connection in Connections) { if (connection.ConnectionSettings.EndPoint is IPEndPoint ipEndPoint) { switch (ipEndPoint.Port) { case 5001: ApiManager.AddApi(new RubidiumApi(connection, new RubidiumSyntax())); break; default: throw new NotSupportedException(); } } } }
public override void ConfigureDeviceApis() { foreach (var connection in Connections) { if (connection.ConnectionSettings.EndPoint is UriEndPoint uriEndPoint) { switch (uriEndPoint.Uri.AbsolutePath) { case "/api/booster": ApiManager.AddApi(new TplBoosterApi(connection, new TplBoosterSyntax())); break; default: throw new NotSupportedException(); } } } }
public override void ConfigureDeviceApis() { foreach (var connection in Connections) { if (connection.ConnectionSettings.EndPoint is IPEndPoint ipEndPoint) { switch (ipEndPoint.Port) { case int port when(port < 4000 && port >= 4016): ApiManager.AddApi(new PowerSupplyApi(connection, new Apc7920bSyntax())); break; default: throw new NotSupportedException(); } } } }