Beispiel #1
0
        public Message FillTemplate(ParamValueCollection collection)
        {
            var subject = collection.Replace(this.Subject);
            var text = collection.Replace(this.Text);

            return new Message(subject, text);
        }
Beispiel #2
0
 public ParamValueCollection GetValues()
 {
     var result = new ParamValueCollection();
     result.Add("login", this.Login);
     result.Add("password", this.Password);
     result.Add("sender", this.SenderName);
     result.AddRange(this.Values);
     return result;
 }
Beispiel #3
0
        protected override void ParseConnectionStringParams(ParamValueCollection parametres)
        {
            base.ParseConnectionStringParams(parametres);

            if (parametres != null)
            {
                this.From = parametres.GetValue("From") ?? "";
            }
        }
Beispiel #4
0
        protected override void ParseConnectionStringParams(ParamValueCollection parametres)
        {
            if (parametres == null)
            {
                return;
            }

            base.ParseConnectionStringParams(parametres);

            this.QueueName = parametres.GetValue("QueueName") ?? "";

            if (parametres.Contains("ExecutionTimeout"))
            {
                var value = parametres.GetValue("ExecutionTimeout");
                this.ExecutionTimeout = String.IsNullOrWhiteSpace(value) ? DEFAULT_EXECUTION_TIMEOUT : Int32.Parse(value);
            }
        }