Table of Contents

Property DefaultAccessor

Namespace
QueryGuard.Testing
Assembly
QueryGuard.Testing.dll

DefaultAccessor

Gets the default accessor, for wiring an interceptor when a test constructs one by hand.

public static IQueryGuardSessionAccessor DefaultAccessor { get; }

Property Value

IQueryGuardSessionAccessor

Remarks

The same instance as Shared, which is what UseQueryGuard() attaches an interceptor to. Both defaults land here, so a scope opened without an accessor and an interceptor wired without one are already looking at each other.