示例#1
0
 // Token: 0x06001E24 RID: 7716 RVA: 0x000AECC4 File Offset: 0x000ACEC4
 public static FreeBusyQueryResult[] BatchLoadData(UserContext userContext, CalendarAdapter[] adapters, DateRange[] dateRanges)
 {
     if (userContext == null)
     {
         throw new ArgumentNullException("userContext");
     }
     if (adapters == null)
     {
         throw new ArgumentNullException("adapters");
     }
     if (adapters.Length == 0)
     {
         throw new ArgumentException("Length of adapters cannot be 0");
     }
     if (dateRanges == null)
     {
         throw new ArgumentNullException("dateRanges");
     }
     if (dateRanges.Length == 0)
     {
         throw new ArgumentException("Length of dateRanges cannot be 0");
     }
     string[]        array  = new string[adapters.Length];
     StoreObjectId[] array2 = new StoreObjectId[adapters.Length];
     for (int i = 0; i < adapters.Length; i++)
     {
         array[i]  = adapters[i].SmtpAddress;
         array2[i] = (adapters[i].IsGSCalendar ? null : adapters[i].FolderId.StoreObjectId);
     }
     return(AvailabilityDataSource.BatchLoadData(userContext, array, array2, dateRanges));
 }
示例#2
0
 // Token: 0x06001E23 RID: 7715 RVA: 0x000AEC34 File Offset: 0x000ACE34
 public AvailabilityDataSource(UserContext userContext, string smtpAddress, StoreObjectId folderStoreId, DateRange[] dateRanges, bool pendingLoad)
 {
     if (userContext == null)
     {
         throw new ArgumentNullException("userContext");
     }
     if (smtpAddress == null)
     {
         throw new ArgumentNullException("smtpAddress");
     }
     if (dateRanges == null)
     {
         throw new ArgumentNullException("dateRanges");
     }
     if (dateRanges.Length == 0)
     {
         throw new ArgumentException("Length of dateRanges cannot be 0");
     }
     this.userContext = userContext;
     this.dateRanges  = dateRanges;
     if (!pendingLoad)
     {
         FreeBusyQueryResult[] array = AvailabilityDataSource.BatchLoadData(userContext, new string[]
         {
             smtpAddress
         }, new StoreObjectId[]
         {
             folderStoreId
         }, dateRanges);
         if (array != null)
         {
             this.LoadFromQueryResult(array[0]);
         }
     }
 }