Exemple #1
0
 private void DirectQueryByGlobalObjectId(MailboxSession session, GlobalObjectId globalObjectId, string schemaKey, StorePropertyDefinition[] propertiesToFetch, Func <PropertyBag, bool> matchFoundAction, bool fetchResultsInReverseChronologicalOrder, bool useCleanGoid, bool useCachedPropertySetIfPresent, string[] itemClassFilter, ExDateTime?startDate = null, ExDateTime?endDate = null)
 {
     if (!CalendarVersionStoreGateway.ValidateDateRanges(ref startDate, ref endDate))
     {
         throw new ArgumentException("StartDate cannot be greater than EndDate", "startDate");
     }
     using (SearchFolder searchFolder = this.GetSearchFolder(session))
     {
         CalendarCorrelationMatch.QueryRelatedItems(searchFolder, globalObjectId, schemaKey, propertiesToFetch, useCachedPropertySetIfPresent, matchFoundAction, fetchResultsInReverseChronologicalOrder, !useCleanGoid, itemClassFilter, new ExDateTime?(startDate.Value), new ExDateTime?(endDate.Value));
     }
 }
Exemple #2
0
 public void QueryBySubjectContains(MailboxSession session, string subject, string schemaKey, StorePropertyDefinition[] propertiesToFetch, Action <PropertyBag> matchFoundAction, ExDateTime?startDate = null, ExDateTime?endDate = null)
 {
     if (!CalendarVersionStoreGateway.ValidateDateRanges(ref startDate, ref endDate))
     {
         throw new ArgumentException("StartDate cannot be greater than EndDate", "startDate");
     }
     using (SearchFolder searchFolder = this.GetSearchFolder(session))
     {
         CalendarCorrelationMatch.QuerySubjectContains(searchFolder, subject, schemaKey, propertiesToFetch, this.useCachedPropertySetIfPresent, matchFoundAction, startDate.Value, endDate.Value);
     }
 }