13 references to ServiceEndpointWatcher
Microsoft.Extensions.ServiceDiscovery (9)
Http\HttpServiceEndpointResolver.cs (2)
165
private readonly
ServiceEndpointWatcher
_watcher;
173
public ResolverEntry(
ServiceEndpointWatcher
watcher, IServiceEndpointSelector selector)
ServiceEndpointResolver.cs (2)
170
private sealed class ResolverEntry(
ServiceEndpointWatcher
watcher) : IAsyncDisposable
172
private readonly
ServiceEndpointWatcher
_watcher = watcher;
ServiceEndpointWatcher.cs (2)
23
private 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)
15
ILogger<
ServiceEndpointWatcher
> logger,
22
private readonly ILogger<
ServiceEndpointWatcher
> _logger = logger;
29
public
ServiceEndpointWatcher
CreateWatcher(string serviceName)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
DnsSrvServiceEndpointResolverTests.cs (1)
18
/// These also cover <see cref="
ServiceEndpointWatcher
"/> and <see cref="ServiceEndpointWatcherFactory"/> by extension.
Microsoft.Extensions.ServiceDiscovery.Tests (3)
ConfigurationServiceEndpointResolverTests.cs (1)
16
/// These also cover <see cref="
ServiceEndpointWatcher
"/> and <see cref="ServiceEndpointWatcherFactory"/> by extension.
PassThroughServiceEndpointResolverTests.cs (1)
16
/// These also cover <see cref="
ServiceEndpointWatcher
"/> and <see cref="ServiceEndpointWatcherFactory"/> by extension.
ServiceEndpointResolverTests.cs (1)
18
/// Tests for <see cref="ServiceEndpointWatcherFactory"/> and <see cref="
ServiceEndpointWatcher
"/>.