Class QueryClientFactory
- Namespace
- DotNetQuery.Core
- Assembly
- DotNetQuery.Core.dll
Factory for creating IQueryClient instances without a dependency injection container.
public static class QueryClientFactory
- Inheritance
-
QueryClientFactory
- Inherited Members
Methods
Create(QueryClientOptions, IScheduler?, ILogger?)
Creates a new IQueryClient using the given options.
Options are validated before the client is created.
public static IQueryClient Create(QueryClientOptions options, IScheduler? scheduler = null, ILogger? logger = null)
Parameters
optionsQueryClientOptionsThe configuration options for the client.
schedulerISchedulerAn optional System.Reactive.Concurrency.IScheduler used for timing operations such as stale-time, cache eviction, and refetch intervals. Defaults to System.Reactive.Concurrency.DefaultScheduler.Instance when
null.loggerILoggerAn optional ILogger used for structured log messages on fetch, cache, retry, and mutation events. When
null, logging is disabled but metrics and traces are still emitted.
Returns
- IQueryClient
A new IQueryClient instance.