Show / Hide Table of Contents

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.

Inheritance
object
NoOpCosmosQueryLogSink
Implements
ICosmosQueryLogSink
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Benday.CosmosDb.Diagnostics
Assembly: Benday.CosmosDb.dll
Syntax
public sealed class NoOpCosmosQueryLogSink : ICosmosQueryLogSink

Fields

| Edit this page View Source

Instance

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 Source

Record(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.

Implements

ICosmosQueryLogSink
  • Edit this page
  • View Source
In this article
Back to top Copyright © www.benday.com | info@benday.com