public RegisterEndpoint ( [ address, [ endpoint ) : bool | ||
address | [ | the textual name to give this endpoint |
endpoint | [ | the Endpoint to remember |
리턴 | bool |
public bool RegisterEndpoint([NotNull] string address, [NotNull] Endpoint endpoint)
{
lock (m_endpointsSync)
{
if (m_endpoints.ContainsKey(address))
return false;
m_endpoints[address] = endpoint;
return true;
}
}
protected bool RegisterEndpoint([NotNull] string addr, [NotNull] Ctx.Endpoint endpoint) { return(m_ctx.RegisterEndpoint(addr, endpoint)); }