public void Send(IEnumerable <SmtpAddress> recipientAddresses, string subject, string body) { AnchorUtil.ThrowOnCollectionEmptyArgument(recipientAddresses, "recipientAddresses"); AnchorUtil.ThrowOnNullOrEmptyArgument(subject, "subject"); AnchorUtil.ThrowOnNullOrEmptyArgument(body, "body"); StringBuilder stringBuilder = new StringBuilder(); foreach (SmtpAddress smtpAddress in recipientAddresses) { this.Message.Recipients.Add(this.CreateRecipient(smtpAddress.ToString()), RecipientItemType.To); stringBuilder.Append(smtpAddress.ToString()); stringBuilder.Append(';'); } this.Message.AutoResponseSuppress = AutoResponseSuppress.All; this.Message.Subject = subject; using (TextWriter textWriter = this.Message.Body.OpenTextWriter(BodyFormat.TextHtml)) { textWriter.Write(body); } this.context.Logger.Log(MigrationEventType.Information, "Sending report email to {0}, subject {1}", new object[] { stringBuilder, subject }); this.Message.SendWithoutSavingMessage(); }
// Token: 0x060001E4 RID: 484 RVA: 0x000072C0 File Offset: 0x000054C0 public IEnumerable <StoreObjectId> FindMessageIds(QueryFilter queryFilter, PropertyDefinition[] properties, SortBy[] sortBy, AnchorRowSelector rowSelector, int?maxCount) { AnchorUtil.ThrowOnCollectionEmptyArgument(sortBy, "sortBy"); if (maxCount == null || maxCount.Value > 0) { if (properties == null) { properties = new PropertyDefinition[0]; } PropertyDefinition[] columns = new PropertyDefinition[1 + properties.Length]; columns[0] = ItemSchema.Id; Array.Copy(properties, 0, columns, 1, properties.Length); using (IQueryResult itemQueryResult = this.folder.Folder.IItemQuery(ItemQueryType.Associated, queryFilter, sortBy, columns)) { foreach (StoreObjectId id in AnchorDataProvider.ProcessQueryRows(columns, itemQueryResult, rowSelector, 0, maxCount)) { yield return(id); } } } yield break; }
public ChainedHeatMap(params IHeatMap[] heatMaps) { AnchorUtil.ThrowOnCollectionEmptyArgument(heatMaps, "heatMaps"); this.heatMaps = heatMaps; }