public static ConnectionSettingsManager GetInstanceForModernOutlook(ILogAdapter logAdapter)
        {
            if (logAdapter == null)
            {
                throw new ArgumentNullException("logAdapter", "The logAdapter parameter cannot be null.");
            }
            logAdapter.RegisterLogMetaData("ConnectionSettingsDiscovery", typeof(ConnectionSettingsDiscoveryMetadata));
            GlobalConnectionSettingsProvider globalConnectionSettingsProvider = new GlobalConnectionSettingsProvider(logAdapter);

            return(new ConnectionSettingsManager(new IConnectionSettingsWriteProvider[]
            {
                globalConnectionSettingsProvider
            }, new IConnectionSettingsReadProvider[]
            {
                new O365ConnectionSettingsProvider(logAdapter),
                globalConnectionSettingsProvider
            }));
        }