public Message FillTemplate(ParamValueCollection collection) { var subject = collection.Replace(this.Subject); var text = collection.Replace(this.Text); return new Message(subject, text); }
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; }
protected override void ParseConnectionStringParams(ParamValueCollection parametres) { base.ParseConnectionStringParams(parametres); if (parametres != null) { this.From = parametres.GetValue("From") ?? ""; } }
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); } }