/// <summary>
 /// Invokes the message received.
 /// </summary>
 /// <param name="e">The <see cref="Lextm.SharpSnmpLib.Pipeline.InformRequestMessageReceivedEventArgs"/> instance containing the event data.</param>
 private void InvokeMessageReceived(InformRequestMessageReceivedEventArgs e)
 {
     var handler = MessageReceived;
     if (handler != null) 
     {
         handler(this, e);
     }
 }
Example #2
0
        /// <summary>
        /// Invokes the message received.
        /// </summary>
        /// <param name="e">The <see cref="Lextm.SharpSnmpLib.Pipeline.InformRequestMessageReceivedEventArgs"/> instance containing the event data.</param>
        private void InvokeMessageReceived(InformRequestMessageReceivedEventArgs e)
        {
            var handler = MessageReceived;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Example #3
0
// ReSharper restore MemberCanBePrivate.Global

        private void ListenerInformRequestReceived(object sender, InformRequestMessageReceivedEventArgs e)
        {
            LogMessage(string.Format(CultureInfo.InvariantCulture, StrSends, DateTime.Now, e.Sender, e.InformRequestMessage.ToString(Objects)));
        }
Example #4
0
 private static void WatcherInformRequestReceived(object sender, InformRequestMessageReceivedEventArgs e)
 {
     Console.WriteLine("INFORM version {0}: {1}", e.InformRequestMessage.Version, e.InformRequestMessage);
 }
Example #5
0
 private static void WatcherInformRequestReceived(object sender, InformRequestMessageReceivedEventArgs e)
 {
     Console.WriteLine(e.InformRequestMessage);
 }