Ejemplo n.º 1
0
 static private Func <bool> GetValidateFunc(IPluginFastIn pluginFastIn, bool autoValidate)
 {
     if (autoValidate)
     {
         return(() => { return true; });
     }
     // Fast value pins always return false for PinIsChanged, we therefor need to return true here manually.
     return(() => { pluginFastIn.Validate(); return true; });
 }
Ejemplo n.º 2
0
 private static void SetInputProperties(IPluginFastIn input, InputAttribute attribute)
 {
     SetIOProperties(input, attribute);
     input.AutoValidate = attribute.AutoValidate;
 }