in src/Microsoft.ServiceFabric.AspNetCore/AspNetCoreCommunicationListener.cs [174:187]
protected EndpointResourceDescription GetEndpointResourceDescription(string endpointName)
{
if (endpointName == null)
{
throw new ArgumentNullException("endpointName");
}
if (!this.serviceContext.CodePackageActivationContext.GetEndpoints().Contains(endpointName))
{
throw new InvalidOperationException(string.Format(SR.EndpointNameNotFoundExceptionMessage, endpointName));
}
return this.serviceContext.CodePackageActivationContext.GetEndpoint(endpointName);
}