private static void SNMPAgentFoundHandler(object sender, AgentFoundEventArgs e) { // this event needs to be passed on to bl layer IPEndPoint agent = e.Agent; // wait some milliseconds or we'll get a nullreference exception Thread.Sleep(150); SNMPAgentFoundEventArgs a = new SNMPAgentFoundEventArgs(e.Agent); SNMPAgentFound(a); }
static void SNMPAgentFoundInternal(SNMPAgentFoundEventArgs e) { // pass on to the user of this dll SNMPAgentFound(e); }