13 references to ServiceEndpointWatcherFactory
Microsoft.Extensions.ServiceDiscovery (9)
Http\HttpServiceEndpointResolver.cs (2)
14
internal sealed class HttpServiceEndpointResolver(
ServiceEndpointWatcherFactory
watcherFactory, IServiceProvider serviceProvider, TimeProvider timeProvider) : IAsyncDisposable
20
private readonly
ServiceEndpointWatcherFactory
_watcherFactory = watcherFactory;
Http\ServiceDiscoveryHttpMessageHandlerFactory.cs (1)
11
ServiceEndpointWatcherFactory
factory,
ServiceDiscoveryHttpClientBuilderExtensions.cs (2)
29
var
watcherFactory = services.GetRequiredService<
ServiceEndpointWatcherFactory
>();
ServiceDiscoveryServiceCollectionExtensions.cs (2)
66
services.TryAddSingleton<
ServiceEndpointWatcherFactory
>();
68
services.TryAddSingleton(sp => new ServiceEndpointResolver(sp.GetRequiredService<
ServiceEndpointWatcherFactory
>(), sp.GetRequiredService<TimeProvider>()));
ServiceEndpointResolver.cs (2)
18
private readonly
ServiceEndpointWatcherFactory
_watcherFactory;
30
internal ServiceEndpointResolver(
ServiceEndpointWatcherFactory
watcherFactory, TimeProvider timeProvider)
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"/>.