@@ -1312,15 +1312,15 @@ private Device NormalizeDevice(IDevice device)
13121312 foreach ( var genericComponent in genericComponents )
13131313 {
13141314 var validationResults = new ValidationResult ( false , $ "Invalid Component : \" { genericComponent . Type } \" Not Found") ;
1315- if ( _configuration . InputValidationLevel > InputValidationLevel . Ignore )
1315+ if ( _configuration . DeviceValidationLevel > DeviceValidationLevel . Ignore )
13161316 {
13171317 MulticastIsolation . Raise ( InvalidComponentAdded , h => h ( obj . Uuid , genericComponent , validationResults ) ) ;
13181318
13191319 // Remove Component from Device
1320- if ( _configuration . InputValidationLevel == InputValidationLevel . Remove ) obj . RemoveComponent ( genericComponent . Id ) ;
1320+ if ( _configuration . DeviceValidationLevel == DeviceValidationLevel . Remove ) obj . RemoveComponent ( genericComponent . Id ) ;
13211321
13221322 // Invalidate entire Device
1323- if ( _configuration . InputValidationLevel == InputValidationLevel . Strict ) return null ;
1323+ if ( _configuration . DeviceValidationLevel == DeviceValidationLevel . Strict ) return null ;
13241324 }
13251325 }
13261326 }
@@ -1332,15 +1332,15 @@ private Device NormalizeDevice(IDevice device)
13321332 foreach ( var genericComposition in genericCompositions )
13331333 {
13341334 var validationResults = new ValidationResult ( false , $ "Invalid Composition : \" { genericComposition . Type } \" Not Found") ;
1335- if ( _configuration . InputValidationLevel > InputValidationLevel . Ignore )
1335+ if ( _configuration . DeviceValidationLevel > DeviceValidationLevel . Ignore )
13361336 {
13371337 MulticastIsolation . Raise ( InvalidCompositionAdded , h => h ( obj . Uuid , genericComposition , validationResults ) ) ;
13381338
13391339 // Remove Compsition from Device
1340- if ( _configuration . InputValidationLevel == InputValidationLevel . Remove ) obj . RemoveComposition ( genericComposition . Id ) ;
1340+ if ( _configuration . DeviceValidationLevel == DeviceValidationLevel . Remove ) obj . RemoveComposition ( genericComposition . Id ) ;
13411341
13421342 // Invalidate entire Device
1343- if ( _configuration . InputValidationLevel == InputValidationLevel . Strict ) return null ;
1343+ if ( _configuration . DeviceValidationLevel == DeviceValidationLevel . Strict ) return null ;
13441344 }
13451345 }
13461346 }
@@ -1352,15 +1352,15 @@ private Device NormalizeDevice(IDevice device)
13521352 foreach ( var genericDataItem in genericDataItems )
13531353 {
13541354 var validationResults = new ValidationResult ( false , $ "Invalid DataItem : \" { genericDataItem . Type } \" Not Found") ;
1355- if ( _configuration . InputValidationLevel > InputValidationLevel . Ignore )
1355+ if ( _configuration . DeviceValidationLevel > DeviceValidationLevel . Ignore )
13561356 {
13571357 MulticastIsolation . Raise ( InvalidDataItemAdded , h => h ( obj . Uuid , genericDataItem , validationResults ) ) ;
13581358
13591359 // Remove DataItem from Device
1360- if ( _configuration . InputValidationLevel == InputValidationLevel . Remove ) obj . RemoveDataItem ( genericDataItem . Id ) ;
1360+ if ( _configuration . DeviceValidationLevel == DeviceValidationLevel . Remove ) obj . RemoveDataItem ( genericDataItem . Id ) ;
13611361
13621362 // Invalidate entire Device
1363- if ( _configuration . InputValidationLevel == InputValidationLevel . Strict ) return null ;
1363+ if ( _configuration . DeviceValidationLevel == DeviceValidationLevel . Strict ) return null ;
13641364 }
13651365 }
13661366 }
0 commit comments