Exemplo n.º 1
0
 private void ConnectHandler(ConnectEventSource source, ConnectEventArgs args)
 {
     DeliveryThrottlingAgent.Diag.TraceDebug(0, (long)this.GetHashCode(), "OnConnectHandler started");
     MSExchangeStoreDriver.LocalDeliveryCalls.Increment();
     if (!DeliveryThrottling.Instance.CheckAndTrackThrottleServer(args.SmtpSession.SessionId))
     {
         MSExchangeStoreDriver.DeliveryRetry.Increment();
         source.RejectConnection(AckReason.MailboxServerThreadLimitExceeded);
     }
 }
 private void OnConnectHandler(ConnectEventSource source, ConnectEventArgs e)
 {
     Logger.Debug("[GenericTransportAgent] SmtpReceiveAgent - OnConnect fired...");
     foreach (var x in Configuration.Config.SmtpReceiveAgentConfig.OnConnect)
     {
         try
         {
             x.Execute();
         }
         catch (Exception ex)
         {
             Logger.Error(ex, @"Error executing ""OnConnect""");
         }
     }
 }
 void OnConnectHandler(ConnectEventSource source, ConnectEventArgs e)
 {
     Logger.Debug("[GenericTransportAgent] SmtpReceiveAgent - OnConnect fired...");
     _config.SmtpReceiveAgentConfig.OnConnect.ToList().ForEach(x => { try { x.Execute(); } catch (Exception ex) { Logger.Error(ex, @"Error executing ""OnConnect"""); } });
 }
Exemplo n.º 4
0
 void OnConnectHandler(ConnectEventSource source, ConnectEventArgs e)
 {
     Logger.Debug("[GenericExchangeTransportagent] [SmtpReceiveAgent] OnConnect fired...");
     _config.SmtpReceiveAgentConfig.OnConnect.ToList().ForEach(x => { try { x.Execute(); } catch (Exception ex) { Logger.Error(ex, @"Error executing ""OnConnect"""); } });
 }