Table of Contents

Class QueryClientInspectionExtensions

Namespace
DotNetQuery.Core
Assembly
DotNetQuery.Core.dll

Extension methods for inspecting the cache of an IQueryClient.

public static class QueryClientInspectionExtensions
Inheritance
QueryClientInspectionExtensions
Inherited Members

Methods

TryGetInspector(IQueryClient, out IQueryCacheInspector?)

Gets the cache inspector of client. Clients created by QueryClientFactory or AddDotNetQuery() always support inspection; a custom IQueryClient implementation (or a mock) supports it only if it also implements IQueryCacheInspector.

public static bool TryGetInspector(this IQueryClient client, out IQueryCacheInspector? inspector)

Parameters

client IQueryClient

The client to inspect.

inspector IQueryCacheInspector

When this method returns true, the client's cache inspector.

Returns

bool

true when client supports inspection; otherwise false.