Пример #1
0
 public SmtpSubmissionItem(RuleEvaluationContext context, MessageItem item, WorkItem workItem) : base("Microsoft SMTP Server")
 {
     base.Session        = context.StoreSession;
     base.Item           = item;
     this.context        = context;
     this.workItem       = workItem;
     this.submissionTime = DateTime.UtcNow;
 }
Пример #2
0
        protected override void MessageTrackThrottle <C, L>(string limitType, C count, L limit)
        {
            if (base.ServerIPAddress == null)
            {
                base.ServerIPAddress = this.context.LocalServerNetworkAddress;
            }
            RuleEvaluationContext ruleEvaluationContext = this.context as RuleEvaluationContext;

            MessageTrackingLog.TrackThrottle(MessageTrackingSource.MAILBOXRULE, ruleEvaluationContext.MbxTransportMailItem, base.ServerIPAddress, this.context.CurrentFolderDisplayName, string.Format(CultureInfo.InvariantCulture, "{0}:{1}/{2}", new object[]
            {
                limitType,
                count,
                limit
            }), this.context.Recipient, this.context.CurrentRule.Name);
        }
Пример #3
0
 protected MessageContext(RuleEvaluationContext parentContext) : base(parentContext)
 {
 }
Пример #4
0
 protected RuleEvaluationContext(RuleEvaluationContext parentContext) : base(parentContext)
 {
     this.mailItemDeliver = parentContext.mailItemDeliver;
 }