Skip to main content

Definition

Assembly: Microsoft.Restier.Core.dll Namespace: Microsoft.Restier.Core.Query

Syntax

Microsoft.Restier.Core.Query.IQueryExpressionAuthorizer

Summary

Represents a service that inspects a query expression.

Remarks

Query expression inspection evaluates an expression to determine if it is valid according to API logic such as authorization rules. Inspection is the first step that occurs when processing a query expression after its children have been visited, so it occurs during upward traversal of the query expression. This ensures that inspection has a chance to take place before the node is altered in any way (with the exception of normalization of expressions identifying API data).

Methods

Authorize Abstract

Check an expression to see whether it is authorized.

Syntax

bool Authorize(Microsoft.Restier.Core.Query.QueryExpressionContext context)

Parameters

NameTypeDescription
contextMicrosoft.Restier.Core.Query.QueryExpressionContextThe query expression context.

Returns

Type: bool true if the inspection passed; otherwise, false.