From 52496c4bc8c4e0701e370f0f174f2b7b5d1b2ab3 Mon Sep 17 00:00:00 2001 From: Andreas Hanslovsky Date: Wed, 25 Mar 2026 13:04:25 +0100 Subject: [PATCH] Add RecipeName to ValidateUnitsRequest Adds a new string property RecipeName to ValidateUnitsRequest (null if no recipe is loaded) so unit validation can be performed in the context of the currently loaded recipe. The property is annotated with [CFX.Utilities.CreatedVersion("2.1")] and includes XML documentation explaining its purpose. --- .../UnitValidation/ValidateUnitsRequest.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CFX/InformationSystem/UnitValidation/ValidateUnitsRequest.cs b/CFX/InformationSystem/UnitValidation/ValidateUnitsRequest.cs index d74be1da..8c66d83b 100644 --- a/CFX/InformationSystem/UnitValidation/ValidateUnitsRequest.cs +++ b/CFX/InformationSystem/UnitValidation/ValidateUnitsRequest.cs @@ -117,5 +117,18 @@ public int? Lane get; set; } + + /// + /// Currently loaded recipe name. Null if no specific recipe is currently loaded. + /// + /// + /// Send the currently loaded recipe name as part of the request, so that the validation can be performed in the context of the current recipe. + /// + [CFX.Utilities.CreatedVersion("2.1")] + public string RecipeName + { + get; + set; + } } }