Пример #1
0
 protected override ISyntaxVisitorAction Leave(
     OperationDefinitionNode node,
     IDocumentValidatorContext context)
 {
     if (context.Names.Count > 1)
     {
         context.Errors.Add(context.SubscriptionSingleRootField(node));
     }
     return(Continue);
 }