Source/NFX.Erlang/Internal/MboxRegistry.cs
/// <summary>
/// Create a named mailbox if one is not already registered, otherwise
/// return registered mailbox
/// </summary>
Create a named mailbox if one is not already registered, otherwise
return registered mailbox
Create a named mailbox if one is not already registered otherwise return registered mailbox
public ErlMbox Create(ErlAtom name)
    {
      if (name == ErlAtom.Null)
        throw new NFXException(StringConsts.ERL_VALUE_MUST_NOT_BE_NULL_ERROR);
      var mbox = m_ByName.GetOrAdd(name, n =>
      {
        var pid = m_Node.CreatePid();
        var m = new ErlMbox(m_Node, pid, n);
        m_ByPid[pid] = m;
        return m;
      });
      return mbox;
    }
public ErlMbox Create ( ErlAtom name ) { if ( name == ErlAtom . Null ) throw new NFXException ( StringConsts . ERL_VALUE_MUST_NOT_BE_NULL_ERROR ) ; var mbox = m_ByName . GetOrAdd ( name , n => { var pid = m_Node . CreatePid ( ) ; var m = new ErlMbox ( m_Node , pid , n ) ; m_ByPid [ pid ] = m ; return m ; } ) ; return mbox ; }
Create a named mailbox if one is not already registered, otherwise
return registered mailbox
Create a named mailbox if one is not already registered otherwise return registered mailbox
name
ErlAtom