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!"); } }
public IdentResolver(NetDb db) { db.RouterInfoUpdates += NetDb_RouterInfoUpdates; db.LeaseSetUpdates += NetDb_LeaseSetUpdates; db.DatabaseSearchReplies += NetDb_DatabaseSearchReplies; }
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); }