Log.Info($"The service '{serviceInfo.ServiceKey}' register endpoint: {serviceInfo.Endpoint}");
Log.Info($"The service '{serviceInfo.ServiceKey}' register endpoint: {endpoint}");
exists.Endpoints.Add(serviceInfo.Endpoint);
exists.Endpoints.Add(endpoint);
}
}
}
}
}
}
catch(Exceptionex)
catch(Exceptionex)
{
{
Log.Error(ex,"Fault append service ({0} {1}) endpoint '{2}'",serviceInfo.ServiceKey,serviceInfo.Version,serviceInfo.Endpoint);
Log.Error(ex,"Fault append service ({0} {1}) endpoint '{2}'",serviceInfo.ServiceKey,serviceInfo.Version, endpoint);
result=InvokeResult.Fault(ex.Message);
result=InvokeResult.Fault(ex.Message);
}
}
finally
finally
@ -212,7 +213,7 @@ namespace ZeroLevel.Discovery
}
}
else
else
{
{
result=InvokeResult.Fault($"Appending endpoint '{serviceInfo.Endpoint}' canceled for service {serviceInfo.ServiceKey} ({serviceInfo.Version}) because endpoind no avaliable");
result=InvokeResult.Fault($"Appending endpoint '{endpoint}' canceled for service {serviceInfo.ServiceKey} ({serviceInfo.Version}) because endpoind no avaliable");