Наследование: System.EventArgs
Пример #1
0
 /// <summary>
 /// Raises the SessionCompleted Event.
 /// </summary>
 /// <param name="args">The event data.</param>
 protected virtual void OnSessionCompleted(SessionEventArgs args)
 {
     SessionCompleted?.Invoke(this, args);
 }
Пример #2
0
 /// <summary>
 /// Raises the SessionCompleted Event.
 /// </summary>
 /// <param name="args">The event data.</param>
 protected virtual void OnSessionCompleted(SessionEventArgs args)
 {
     SessionCompleted?.Invoke(this, args);
 }
Пример #3
0
 /// <summary>
 /// Raises the SessionCancelled Event.
 /// </summary>
 /// <param name="args">The event data.</param>
 protected internal virtual void OnSessionCancelled(SessionEventArgs args)
 {
     SessionCancelled?.Invoke(this, args);
 }
Пример #4
0
 static void OnSmtpServerSessionCompleted(object sender, SessionEventArgs sessionEventArgs)
 {
     Console.WriteLine("SessionCompleted: {0}", sessionEventArgs.Context.RemoteEndPoint);
 }