2 instantiations of ServiceEndpointWatcher
Microsoft.Extensions.ServiceDiscovery (1)
ServiceEndpointWatcherFactory.cs (1)
54return new ServiceEndpointWatcher(
Microsoft.Extensions.ServiceDiscovery.Tests (1)
ServiceEndpointResolverTests.cs (1)
39var watcher = new ServiceEndpointWatcher([], NullLogger.Instance, "foo", TimeProvider.System, Options.Options.Create(new ServiceDiscoveryOptions()));
31 references to ServiceEndpointWatcher
Microsoft.Extensions.ServiceDiscovery (11)
Http\HttpServiceEndpointResolver.cs (3)
156var watcher = _watcherFactory.CreateWatcher(serviceName); 165private readonly ServiceEndpointWatcher _watcher; 173public ResolverEntry(ServiceEndpointWatcher watcher, IServiceEndpointSelector selector)
ServiceEndpointResolver.cs (3)
165var resolver = _watcherFactory.CreateWatcher(serviceName); 170private sealed class ResolverEntry(ServiceEndpointWatcher watcher) : IAsyncDisposable 172private readonly ServiceEndpointWatcher _watcher = watcher;
ServiceEndpointWatcher.cs (2)
23private static readonly TimerCallback s_pollingAction = static state => _ = ((ServiceEndpointWatcher)state!).RefreshAsync(force: true); 162_changeTokenRegistration = endpoints.ChangeToken.RegisterChangeCallback(static state => _ = ((ServiceEndpointWatcher)state!).RefreshAsync(force: false), this);
ServiceEndpointWatcherFactory.cs (3)
15ILogger<ServiceEndpointWatcher> logger, 22private readonly ILogger<ServiceEndpointWatcher> _logger = logger; 29public ServiceEndpointWatcher CreateWatcher(string serviceName)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (3)
DnsSrvServiceEndpointResolverTests.cs (3)
18/// These also cover <see cref="ServiceEndpointWatcher"/> and <see cref="ServiceEndpointWatcherFactory"/> by extension. 58ServiceEndpointWatcher watcher; 134ServiceEndpointWatcher watcher;
Microsoft.Extensions.ServiceDiscovery.Tests (17)
ConfigurationServiceEndpointResolverTests.cs (8)
16/// These also cover <see cref="ServiceEndpointWatcher"/> and <see cref="ServiceEndpointWatcherFactory"/> by extension. 33ServiceEndpointWatcher watcher; 74ServiceEndpointWatcher watcher; 158ServiceEndpointWatcher watcher; 250ServiceEndpointWatcher watcher; 292ServiceEndpointWatcher watcher; 359ServiceEndpointWatcher watcher; 404ServiceEndpointWatcher watcher;
ExtensionsServicePublicApiTests.cs (1)
151new Logger<ServiceEndpointWatcher>(new NullLoggerFactory()),
PassThroughServiceEndpointResolverTests.cs (4)
16/// These also cover <see cref="ServiceEndpointWatcher"/> and <see cref="ServiceEndpointWatcherFactory"/> by extension. 28ServiceEndpointWatcher watcher; 59ServiceEndpointWatcher watcher; 92ServiceEndpointWatcher watcher;
ServiceEndpointResolverTests.cs (4)
18/// Tests for <see cref="ServiceEndpointWatcherFactory"/> and <see cref="ServiceEndpointWatcher"/>. 39var watcher = new ServiceEndpointWatcher([], NullLogger.Instance, "foo", TimeProvider.System, Options.Options.Create(new ServiceDiscoveryOptions())); 108ServiceEndpointWatcher watcher; 241ServiceEndpointWatcher watcher;