private ICommunicationListener CreateInternalListener(StatefulServiceContext context) { var erd = context.GetEndpointResourceDescription(c_replicaEndpoint); var uriPrefix = $"{erd.Protocol}://+:{erd.Port}/" + context.CalcUriSuffix(); return(new HttpCommunicationListener(uriPrefix, ProcessRequest)); }