private void OnCommandExecuting(object sender, SmtpCommandExecutingEventArgs e) { // nothing to show or tell the user }
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); }
static void OnCommandExecuting(object sender, SmtpCommandExecutingEventArgs e) { Console.WriteLine("Command executing."); new TracingSmtpCommandVisitor(Console.Out).Visit(e.Command); }
private void ServerSession_OnCommandExecuting(object sender, SmtpCommandExecutingEventArgs e) { // Trigger the Session Command Executing event for the Listener SessionCommandExecuting?.Invoke(sender, e); }