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
clientIQueryClientThe client to inspect.
inspectorIQueryCacheInspectorWhen this method returns
true, the client's cache inspector.
Returns
- bool
truewhenclientsupports inspection; otherwisefalse.