// Token: 0x06001424 RID: 5156 RVA: 0x00048FBC File Offset: 0x000471BC
 private static bool IsWebMethodInDefaultRoleType(string webMethodName, RoleType roleType, ref List <string> entriesCache)
 {
     if (string.IsNullOrEmpty(webMethodName))
     {
         throw new ArgumentNullException("webMethodName");
     }
     if (entriesCache == null)
     {
         lock (PartnerApplicationRunspaceConfiguration.staticLock)
         {
             if (entriesCache == null)
             {
                 ExchangeRole rootRoleForRoleType = PartnerApplicationRunspaceConfiguration.GetRootRoleForRoleType(roleType);
                 if (rootRoleForRoleType != null)
                 {
                     entriesCache = (from x in rootRoleForRoleType.RoleEntries
                                     select x.Name).ToList <string>();
                     entriesCache.Sort();
                 }
                 else
                 {
                     entriesCache = new List <string>();
                 }
             }
         }
     }
     return(entriesCache.BinarySearch(webMethodName, StringComparer.OrdinalIgnoreCase) >= 0);
 }
 // Token: 0x06001423 RID: 5155 RVA: 0x00048FA2 File Offset: 0x000471A2
 public static bool IsWebMethodInOfficeExtensionRole(string webMethodName)
 {
     return(PartnerApplicationRunspaceConfiguration.IsWebMethodInDefaultRoleType(webMethodName, RoleType.OfficeExtensionApplication, ref PartnerApplicationRunspaceConfiguration.officeExtensionEntries));
 }