48 references to ServiceEndpoint
Microsoft.Extensions.ServiceDiscovery (22)
Configuration\ConfigurationServiceEndpointProvider.cs (8)
107
List<
ServiceEndpoint
> resolved = [];
134
foreach (
var
ep in resolved)
146
foreach (
var
ep in resolved)
158
foreach (
var
ep in resolved)
191
private void AddEndpoint(List<
ServiceEndpoint
> endpoints, IConfigurationSection section, string endpointName)
229
private
ServiceEndpoint
CreateEndpoint(EndPoint endPoint)
231
var
serviceEndpoint =
ServiceEndpoint
.Create(endPoint);
Configuration\ConfigurationServiceEndpointProvider.Log.cs (1)
25
internal static void ConfiguredEndpoints(ILogger logger, string serviceName, string path, IList<
ServiceEndpoint
> endpoints, int added)
ConfigurationServiceEndpointProviderOptions.cs (1)
21
public Func<
ServiceEndpoint
, bool> ShouldApplyHostNameMetadata { get; set; } = _ => false;
Http\HttpServiceEndpointResolver.cs (3)
32
public async ValueTask<
ServiceEndpoint
> GetEndpointAsync(HttpRequestMessage request, CancellationToken cancellationToken)
197
public async ValueTask<(bool Valid,
ServiceEndpoint
? Endpoint)> TryGetEndpointAsync(object? context, CancellationToken cancellationToken)
207
var
result = _selector.GetEndpoint(context);
Http\ResolvingHttpDelegatingHandler.cs (1)
61
internal static Uri GetUriWithEndpoint(Uri uri,
ServiceEndpoint
serviceEndpoint, ServiceDiscoveryOptions options)
LoadBalancing\IServiceEndpointSelector.cs (1)
22
ServiceEndpoint
GetEndpoint(object? context);
LoadBalancing\RoundRobinServiceEndpointSelector.cs (2)
12
private IReadOnlyList<
ServiceEndpoint
>? _endpoints;
21
public
ServiceEndpoint
GetEndpoint(object? context)
PassThrough\PassThroughServiceEndpointProvider.cs (2)
19
var
ep =
ServiceEndpoint
.Create(endPoint);
ServiceEndpointBuilder.cs (2)
14
private readonly List<
ServiceEndpoint
> _endpoints = new();
35
public IList<
ServiceEndpoint
> Endpoints => _endpoints;
ServiceEndpointWatcher.Log.cs (1)
28
static string GetEndpointString(
ServiceEndpoint
ep)
Microsoft.Extensions.ServiceDiscovery.Abstractions (10)
Internal\ServiceEndpointImpl.cs (1)
9
internal sealed class ServiceEndpointImpl(EndPoint endPoint, IFeatureCollection? features = null) :
ServiceEndpoint
IServiceEndpointBuilder.cs (1)
17
IList<
ServiceEndpoint
> Endpoints { get; }
ServiceEndpoint.cs (3)
26
/// Creates a new <see cref="
ServiceEndpoint
"/>.
30
/// <returns>A newly initialized <see cref="
ServiceEndpoint
"/>.</returns>
31
public static
ServiceEndpoint
Create(EndPoint endPoint, IFeatureCollection? features = null) => new ServiceEndpointImpl(endPoint, features);
ServiceEndpointSource.cs (5)
17
private readonly List<
ServiceEndpoint
>? _endpoints;
25
public ServiceEndpointSource(List<
ServiceEndpoint
>? endpoints, IChangeToken changeToken, IFeatureCollection features)
37
public IReadOnlyList<
ServiceEndpoint
> Endpoints => _endpoints ?? (IReadOnlyList<
ServiceEndpoint
>)[];
67
public
ServiceEndpoint
[] Endpoints => value.Endpoints.ToArray();
Microsoft.Extensions.ServiceDiscovery.Dns (12)
DnsServiceEndpointProvider.cs (3)
29
var endpoints = new List<
ServiceEndpoint
>();
35
var
serviceEndpoint =
ServiceEndpoint
.Create(new IPEndPoint(address, 0));
DnsServiceEndpointProviderBase.cs (3)
23
private List<
ServiceEndpoint
>? _lastEndpointCollection;
90
foreach (
var
ep in eps)
105
protected void SetResult(List<
ServiceEndpoint
> endpoints, TimeSpan validityPeriod)
DnsServiceEndpointProviderOptions.cs (1)
34
public Func<
ServiceEndpoint
, bool> ShouldApplyHostNameMetadata { get; set; } = _ => false;
DnsSrvServiceEndpointProvider.cs (4)
35
var endpoints = new List<
ServiceEndpoint
>();
88
ServiceEndpoint
CreateEndpoint(EndPoint endPoint)
90
var
serviceEndpoint =
ServiceEndpoint
.Create(endPoint);
DnsSrvServiceEndpointProviderOptions.cs (1)
42
public Func<
ServiceEndpoint
, bool> ShouldApplyHostNameMetadata { get; set; } = _ => false;
Microsoft.Extensions.ServiceDiscovery.Tests (4)
ServiceEndpointTests.cs (4)
29
var
serviceEndpoint =
ServiceEndpoint
.Create(endpoint);
38
var
serviceEndpoint =
ServiceEndpoint
.Create(endpoint);