C# 클래스 GraphQL.Validation.Complexity.ComplexityAnalyzer

상속: IComplexityAnalyzer
파일 보기 프로젝트 열기: graphql-dotnet/graphql-dotnet

Private Properties

프로퍼티 타입 설명
Analyze ComplexityResult
GetImpactFromArgs double?
RecordFieldComplexity void

공개 메소드들

메소드 설명
ComplexityAnalyzer ( int maxRecursionCount = 250 ) : System

Creates a new instance of ComplexityAnalyzer

Validate ( Document document, ComplexityConfiguration complexityParameters ) : void

비공개 메소드들

메소드 설명
Analyze ( Document doc, double avgImpact = 2.0d ) : ComplexityResult

Analyzes the complexity of a document.

GetImpactFromArgs ( INode node ) : double?
RecordFieldComplexity ( INode node, ComplexityResult result, double impact ) : void

메소드 상세

ComplexityAnalyzer() 공개 메소드

Creates a new instance of ComplexityAnalyzer
public ComplexityAnalyzer ( int maxRecursionCount = 250 ) : System
maxRecursionCount int /// Max. number of times to traverse tree nodes. GraphiQL queries take ~95 iterations, adjust as needed. ///
리턴 System

Validate() 공개 메소드

public Validate ( Document document, ComplexityConfiguration complexityParameters ) : void
document GraphQL.Language.AST.Document
complexityParameters ComplexityConfiguration
리턴 void