ServiceEndpoint.Create(EndPoint, IFeatureCollection) Method

Definition

Creates a new ServiceEndpoint.

public static Microsoft.Extensions.ServiceDiscovery.ServiceEndpoint Create (System.Net.EndPoint endPoint, Microsoft.AspNetCore.Http.Features.IFeatureCollection? features = default);
static member Create : System.Net.EndPoint * Microsoft.AspNetCore.Http.Features.IFeatureCollection -> Microsoft.Extensions.ServiceDiscovery.ServiceEndpoint
Public Shared Function Create (endPoint As EndPoint, Optional features As IFeatureCollection = Nothing) As ServiceEndpoint

Parameters

endPoint
EndPoint

The endpoint being represented.

features
IFeatureCollection

Features of the endpoint.

Returns

A newly initialized ServiceEndpoint.

Applies to