// Token: 0x06001477 RID: 5239 RVA: 0x0004C308 File Offset: 0x0004A508 internal static RwsExchangeRunspaceConfiguration NewInstance(IIdentity logonIdentity, ExchangeRunspaceConfigurationSettings settings, List <RoleEntry> sortedRoleEntryFilter, SnapinSet snapinSet) { RwsExchangeRunspaceConfiguration configuration = null; if (RwsExchangeRunspaceConfiguration.RunspaceConfigurationTimeoutEnabled.Value) { ExTraceGlobals.RunspaceConfigTracer.TraceDebug <int, int>(0L, "[RwsExchangeRunspaceConfiguration::NewInstance] Asynchronizely Creating RwsExchangeRunspaceConfiguration. Timeout = {0} MaxRetry = {1}", RwsExchangeRunspaceConfiguration.RunspaceConfigurationTimeoutMilliseconds.Value, RwsExchangeRunspaceConfiguration.RunspaceConfigurationRetryCount.Value); int num = 0; for (;;) { ExTraceGlobals.RunspaceConfigTracer.TraceDebug <int>(0L, "[RwsExchangeRunspaceConfiguration::NewInstance] RetryCount = {0}", num); RwsExchangeRunspaceConfiguration.RunActionWithTimeout(new TimeSpan(0, 0, 0, 0, RwsExchangeRunspaceConfiguration.RunspaceConfigurationTimeoutMilliseconds.Value), delegate { configuration = new RwsExchangeRunspaceConfiguration(logonIdentity, settings, sortedRoleEntryFilter, snapinSet); }); if (configuration != null) { break; } if (num++ >= RwsExchangeRunspaceConfiguration.RunspaceConfigurationRetryCount.Value) { goto Block_4; } } ExTraceGlobals.RunspaceConfigTracer.TraceDebug(0L, "[RwsExchangeRunspaceConfiguration::NewInstance] Got Configuration."); return(configuration); Block_4: throw new TimeoutException(string.Format("Timeout while creating RwsExchangeRunspaceConfiguration. Timeout={0}, MaxRetryCount={1}, CurrentRetryCount={2}.", RwsExchangeRunspaceConfiguration.RunspaceConfigurationTimeoutMilliseconds.Value, RwsExchangeRunspaceConfiguration.RunspaceConfigurationRetryCount.Value, num)); } ExTraceGlobals.RunspaceConfigTracer.TraceDebug(0L, "[RwsExchangeRunspaceConfiguration::NewInstance] Synchronizely Creating RwsExchangeRunspaceConfiguration."); configuration = new RwsExchangeRunspaceConfiguration(logonIdentity, settings, sortedRoleEntryFilter, snapinSet); return(configuration); }
// Token: 0x06001475 RID: 5237 RVA: 0x0004C170 File Offset: 0x0004A370 internal RwsExchangeRunspaceConfiguration(IIdentity logonIdentity, ExchangeRunspaceConfigurationSettings settings, List <RoleEntry> sortedRoleEntryFilter, SnapinSet snapinSet) : base(logonIdentity, null, settings, null, sortedRoleEntryFilter, null, false, false, true, snapinSet) { this.allRoleAssignments = null; foreach (RoleType key in this.allRoleTypes.Keys.ToList <RoleType>()) { this.allRoleTypes[key] = null; } base.RestrictToFilteredCmdlet = true; }