Beispiel #1
0
 private void OnCommandExecuting(object sender, SmtpCommandExecutingEventArgs e)
 {
     // nothing to show or tell the user
 }
Beispiel #2
0
 static void OnCommandExecuting(object sender, SmtpCommandExecutingEventArgs e)
 {
     new TracingSmtpCommandVisitor(Console.Out).Visit(e.Command);
 }
 static void OnCommandExecuting(object sender, SmtpCommandExecutingEventArgs e)
 {
     ((List <SmtpCommand>)e.Context.Properties["Commands"]).Add(e.Command);
 }
Beispiel #4
0
            static void OnCommandExecuting(object sender, SmtpCommandExecutingEventArgs e)
            {
                Console.WriteLine("Command executing.");

                new TracingSmtpCommandVisitor(Console.Out).Visit(e.Command);
            }
Beispiel #5
0
 private void ServerSession_OnCommandExecuting(object sender, SmtpCommandExecutingEventArgs e)
 {
     // Trigger the Session Command Executing event for the Listener
     SessionCommandExecuting?.Invoke(sender, e);
 }