// Token: 0x060013F0 RID: 5104 RVA: 0x00046318 File Offset: 0x00044518
        internal static ExchangeRunspaceConfigurationSettings FromUriConnectionString(string connectionString, ExchangeRunspaceConfigurationSettings.ExchangeApplication defaultApplication, out string vdirPath)
        {
            Uri uri = new Uri(connectionString, UriKind.Absolute);

            vdirPath = ExchangeRunspaceConfigurationSettings.GetVDirPathFromUriLocalPath(uri);
            if (string.IsNullOrEmpty(uri.Query))
            {
                return(ExchangeRunspaceConfigurationSettings.GetDefaultInstance());
            }
            NameValueCollection nameValueCollectionFromUri = LiveIdBasicAuthModule.GetNameValueCollectionFromUri(uri);

            return(ExchangeRunspaceConfigurationSettings.CreateConfigurationSettingsFromNameValueCollection(uri, nameValueCollectionFromUri, defaultApplication));
        }
        // Token: 0x06001275 RID: 4725 RVA: 0x0003B7B4 File Offset: 0x000399B4
        internal static ExchangeRunspaceConfigurationSettings BuildRunspaceConfigurationSettings(string connectionString, UserToken userToken, NameValueCollection collection)
        {
            Uri uri = new Uri(connectionString, UriKind.Absolute);
            ExchangeRunspaceConfigurationSettings exchangeRunspaceConfigurationSettings = ExchangeRunspaceConfigurationSettings.CreateConfigurationSettingsFromNameValueCollection(uri, collection, ExchangeRunspaceConfigurationSettings.ExchangeApplication.PswsClient);

            if (string.IsNullOrEmpty(exchangeRunspaceConfigurationSettings.TenantOrganization))
            {
                exchangeRunspaceConfigurationSettings.TenantOrganization = userToken.ManagedOrganization;
            }
            return(exchangeRunspaceConfigurationSettings);
        }
        // Token: 0x060013F1 RID: 5105 RVA: 0x00046358 File Offset: 0x00044558
        internal static ExchangeRunspaceConfigurationSettings FromRequestHeaders(string connectionString, ExchangeRunspaceConfigurationSettings.ExchangeApplication defaultApplication)
        {
            Uri uri = new Uri(connectionString, UriKind.Absolute);

            return(ExchangeRunspaceConfigurationSettings.CreateConfigurationSettingsFromNameValueCollection(uri, HttpContext.Current.Request.Headers, defaultApplication));
        }