You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently I am writing some code. But the enum ValidationType is strange. We can use multiple validation types in ValidateUnits RR as a list. Can we change the enum to a flagged enum. Also
publicenumValidationType{/// <summary>/// A validation that ensures a unit is at the proper step in the route, and has completed all/// pre-requisite steps./// </summary>UnitRouteValidation,/// <summary>/// A validation that ensures a unit is not in a failed or error condition/// </summary>UnitStatusValidation,/// <summary>/// A validation that ensures a unit and ALL of its sub-assemblies are not in a failed or error condition/// </summary>UnitAndSubsStatusValidation,/// <summary>/// Validates that the trace data has been recived for this unit from the sender by a factory level software system/// </summary>UnitTraceValidation,/// <summary>/// All known validations should be performed/// </summary>All}
to
[Flags]publicenumValidationType{/// <summary>/// A validation that ensures a unit is at the proper step in the route, and has completed all/// pre-requisite steps./// </summary>UnitRouteValidation=1,/// <summary>/// A validation that ensures a unit is not in a failed or error condition/// </summary>UnitStatusValidation=2,/// <summary>/// A validation that ensures a unit and ALL of its sub-assemblies are not in a failed or error condition/// </summary>UnitAndSubsStatusValidation=4,/// <summary>/// Validates that the trace data has been recived for this unit from the sender by a factory level software system/// </summary>UnitTraceValidation=8,/// <summary>/// All known validations should be performed/// </summary>All=16//this can be deleted}
Hello together
Currently I am writing some code. But the enum ValidationType is strange. We can use multiple validation types in ValidateUnits RR as a list. Can we change the enum to a flagged enum. Also
to
So you can very easy program some tests with
myRequestedValidations is now 3, also 1 + 2.
Check one of this validations
This is more clearly like a List of enums.
Greatings
The text was updated successfully, but these errors were encountered: