ServiceEndpoint.Create(EndPoint, IFeatureCollection) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.