/// <summary> /// Raises the SessionCompleted Event. /// </summary> /// <param name="args">The event data.</param> protected virtual void OnSessionCompleted(SessionEventArgs args) { SessionCompleted?.Invoke(this, args); }
/// <summary> /// Raises the SessionCancelled Event. /// </summary> /// <param name="args">The event data.</param> protected internal virtual void OnSessionCancelled(SessionEventArgs args) { SessionCancelled?.Invoke(this, args); }
static void OnSmtpServerSessionCompleted(object sender, SessionEventArgs sessionEventArgs) { Console.WriteLine("SessionCompleted: {0}", sessionEventArgs.Context.RemoteEndPoint); }