NetMQ.Core.Ctx.RegisterEndpoint C# (CSharp) Method

RegisterEndpoint() public method

Save the given address and Endpoint within our internal list. This is used for management of inproc endpoints.
public RegisterEndpoint ( [ address, [ endpoint ) : bool
address [ the textual name to give this endpoint
endpoint [ the Endpoint to remember
return 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;
            }
        }

Usage Example

Example #1
0
 protected bool RegisterEndpoint([NotNull] string addr, [NotNull] Ctx.Endpoint endpoint)
 {
     return(m_ctx.RegisterEndpoint(addr, endpoint));
 }
All Usage Examples Of NetMQ.Core.Ctx::RegisterEndpoint