Description
If LoggingMeterOptions is configured with Enabled set to false then the cluster fails to initialize altogether. This was introduced in 3.5.0 because the internal NoopMeter class constructor was changed to private to ensure use of the singleton and the BuildServiceProvider registration code doesn't use that singleton.
System.InvalidOperationException: Sequence contains no elements
|
at System.Linq.ThrowHelper.ThrowNoElementsException()
|
at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
|
at Couchbase.Core.DI.SingletonServiceFactory.CreateFactory(Type implementationType)
|
at Couchbase.Core.DI.SingletonServiceFactory..ctor(Type implementationType)
|
at Couchbase.ClusterOptions.AddService[TService,TImplementation](ClusterServiceLifetime lifetime)
|
at Couchbase.ClusterOptionsExtensions.AddClusterService[TService,TImplementation](ClusterOptions clusterOptions)
|
at Couchbase.ClusterOptions.BuildServiceProvider()
|
at Couchbase.Core.ClusterContext..ctor(ICluster cluster, CancellationTokenSource tokenSource, ClusterOptions options)
|
at Couchbase.Cluster..ctor(ClusterOptions clusterOptions)
|
at Couchbase.Cluster.ConnectAsync(ClusterOptions options)
|
at Couchbase.Extensions.DependencyInjection.Internal.ClusterProvider.GetBucketFromClusterAsync(String bucketName)
|
at Phoenix.HealthChecks.Couchbase.Extensions.CouchbaseHealthCheck`1.CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken)
|