private IEnumerable <MailboxAuditLogRecord> ShallowSearch() { List <MailboxAuditLogRecord> list = new List <MailboxAuditLogRecord>(); List <string> list2 = (this.searchCriteria.LogonTypes == null) ? new List <string>() : new List <string>(this.searchCriteria.LogonTypes); if (this.searchCriteria.ExternalAccess == null) { if (list2.Count != 1 || !list2[0].Equals("Delegate")) { list2.Add("External"); } MailboxAuditLogRecord mailboxAuditLogRecord = this.CompareLastAccessDatesAndPrepareUserRecord(list2); if (mailboxAuditLogRecord != null) { list.Add(mailboxAuditLogRecord); } } else if (this.searchCriteria.ExternalAccess.Value) { MailboxAuditLogRecord latestAccessDateAndPrepareUserRecord = MailboxAuditLogSearchWorker.GetLatestAccessDateAndPrepareUserRecord(this.mailboxUser, "External"); if (latestAccessDateAndPrepareUserRecord != null) { list.Add(latestAccessDateAndPrepareUserRecord); } } else { MailboxAuditLogRecord mailboxAuditLogRecord2 = this.CompareLastAccessDatesAndPrepareUserRecord(list2); if (mailboxAuditLogRecord2 != null) { list.Add(mailboxAuditLogRecord2); } } if (this.searchStatistics != null) { this.searchStatistics.ResultsReturned += (long)this.resolvedUserNameList.Count; } return(list); }
public NonOwnerAccessResultRow(MailboxAuditLogRecord searchResult) { this.NonOwnerAccessResult = searchResult; }
internal NonOwnerAccessResultRow(Identity id, MailboxAuditLogRecord searchResult) : base(id, searchResult) { this.NonOwnerAccessResult = searchResult; }