Class NoOpCosmosQueryLogSink
Default implementation of ICosmosQueryLogSink that discards every event. Registered automatically by the library's DI setup as the default sink when no other implementation is provided.
Implements
Inherited Members
Namespace: Benday.CosmosDb.Diagnostics
Assembly: Benday.CosmosDb.dll
Syntax
public sealed class NoOpCosmosQueryLogSink : ICosmosQueryLogSink
Fields
| Edit this page View SourceInstance
Singleton instance. Use this whenever a no-op sink is needed
(e.g., in the CosmosRepository<T> constructor's
null-coalescing fallback).
Declaration
public static readonly NoOpCosmosQueryLogSink Instance
Field Value
| Type | Description |
|---|---|
| NoOpCosmosQueryLogSink |
Methods
| Edit this page View SourceRecord(CosmosQueryDiagnostics)
Records a diagnostics event. Called synchronously from the library on the thread that executed the query.
Declaration
public void Record(CosmosQueryDiagnostics diagnostics)
Parameters
| Type | Name | Description |
|---|---|---|
| CosmosQueryDiagnostics | diagnostics | The diagnostics payload for this event. Never null. |