internal static void SetConfigurationSystem(IInternalConfigSystem configSystem, bool initComplete) {
lock (s_initLock) {
// It is an error if the configuration system has already been set.
if (s_initState != InitState.NotStarted) {
throw new InvalidOperationException(SR.GetString(SR.Config_system_already_set));
}
s_configSystem = configSystem;
if (initComplete) {
s_initState = InitState.Completed;
}
else {
s_initState = InitState.Usable;
}
}
}