Пример #1
0
        public static void Start()
        {
            if (Inst != null)
            {
                return;
            }

            Inst = new NetDb();

            if (!Inst.LoadFinished.WaitOne(450000))
            {
                Inst.Terminated = true;
                throw new Exception("NetDb Load did not finish in 450 sec!");
            }
        }
Пример #2
0
 public IdentResolver(NetDb db)
 {
     db.RouterInfoUpdates     += NetDb_RouterInfoUpdates;
     db.LeaseSetUpdates       += NetDb_LeaseSetUpdates;
     db.DatabaseSearchReplies += NetDb_DatabaseSearchReplies;
 }
Пример #3
0
 public IdentResolver(NetDb db)
 {
     db.RouterInfoUpdates     += new NetDb.NetworkDatabaseRouterInfoUpdated(NetDb_RouterInfoUpdates);
     db.LeaseSetUpdates       += new NetDb.NetworkDatabaseLeaseSetUpdated(NetDb_LeaseSetUpdates);
     db.DatabaseSearchReplies += new NetDb.NetworkDatabaseDatabaseSearchReplyReceived(NetDb_DatabaseSearchReplies);
 }