public bool IsProduce(MessageContext context, NodeDescriptor toNode)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     if (toNode == null)
     {
         throw new ArgumentNullException("toNode");
     }
     if (toNode.Node.IsEnabled != 1 ||
         toNode.Node.IsProduceEnabled == false ||
         !toNode.IsCareForOntology(context.Ontology) ||
         (context.Command.Verb == Verb.Update &&
          context.InfoTuplePair.ValueTuple.All(a => !toNode.IsCareforElement(a.Element))))
     {
         return(false);
     }
     return(true);
 }
 public bool IsProduce(MessageContext context, NodeDescriptor toNode)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     if (toNode == null)
     {
         throw new ArgumentNullException("toNode");
     }
     if (toNode.Node.IsEnabled != 1
         || toNode.Node.IsProduceEnabled == false
         || !toNode.IsCareForOntology(context.Ontology)
         || (context.Command.Verb == Verb.Update
             && context.InfoTuplePair.ValueTuple.All(a => !toNode.IsCareforElement(a.Element))))
     {
         return false;
     }
     return true;
 }