Example #1
0
        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);
        }
Example #2
0
 static void SNMPAgentFoundInternal(SNMPAgentFoundEventArgs e)
 {
     // pass on to the user of this dll
     SNMPAgentFound(e);
 }