NetMQ.Zyre.Zyre.Uuid C# (CSharp) Method

Uuid() public method

Return our node UUID string, after successful initialization
public Uuid ( ) : System.Guid
return System.Guid
        public Guid Uuid()
        {
            _actor.SendFrame("UUID");
            var uuidBytes = _actor.ReceiveFrameBytes();
            Debug.Assert(uuidBytes.Length == 16);
            _uuid = new Guid(uuidBytes);
            return _uuid;
        }

Usage Example

Exemplo n.º 1
0
 public MainForm(string name)
 {
     InitializeComponent();
     btnStop.Enabled = false;
     _connectedPeers = new List<Peer>();
     peerBindingSource.DataSource = _connectedPeers;
     _ownGroups = new List<Group>();
     ownGroupBindingSource.DataSource = _ownGroups;
     _peerGroups = new List<Group>();
     peerGroupBindingSource.DataSource = _peerGroups;
     _headersByPeerGuid = new Dictionary<Guid, List<Header>>();
     _zyre = new Zyre(_name, true, NodeLogger);
     if (!string.IsNullOrEmpty(name))
     {
         _zyre.SetName(name);
     }
     _name = _zyre.Name();
     _uuid = _zyre.Uuid();
     _zyre.EnterEvent += ZyreEnterEvent;
     _zyre.StopEvent += ZyreStopEvent;
     _zyre.ExitEvent += ZyreExitEvent;
     _zyre.EvasiveEvent += ZyreEvasiveEvent;
     _zyre.JoinEvent += ZyreJoinEvent;
     _zyre.LeaveEvent += ZyreLeaveEvent;
     _zyre.WhisperEvent += ZyreWhisperEvent;
     _zyre.ShoutEvent += ZyreShoutEvent;
 }
All Usage Examples Of NetMQ.Zyre.Zyre::Uuid