public void Initialize(PublicKey masterPublicKey) { _discoveryManager.NodeDiscovered += OnNodeDiscovered; _nodeTable.Initialize(masterPublicKey); if (_nodeTable.MasterNode is null) { throw new NetworkingException( "Discovery node table initialization failed - master node is null", NetworkExceptionType.Discovery); } _nodesLocator.Initialize(_nodeTable.MasterNode); }
public void Start(PublicKey masterPublicKey) { try { // TODO: can we do it so we do not have to call initialize on these classes? _nodeTable.Initialize(new NodeId(masterPublicKey)); _nodesLocator.Initialize(_nodeTable.MasterNode); _logger.Info("Initializing UDP channel."); InitializeUdpChannel(); } catch (Exception e) { _logger.Error("Error during discovery app start process", e); throw; } }
public void Initialize(PublicKey masterPublicKey) { _discoveryManager.NodeDiscovered += OnNewNodeDiscovered; _nodeTable.Initialize(masterPublicKey); _nodesLocator.Initialize(_nodeTable.MasterNode); }
public void Initialize(PublicKey masterPublicKey) { // TODO: can we do it so we do not have to call initialize on these classes? _nodeTable.Initialize(new NodeId(masterPublicKey)); _nodesLocator.Initialize(_nodeTable.MasterNode); }