System\Configuration\MgmtConfigurationRecord.cs (39)
87if (ConfigStreamInfo.HasStreamInfos) {
88foreach (StreamInfo streamInfo in ConfigStreamInfo.StreamInfos.Values) {
501e, ConfigStreamInfo.StreamName, 0);
639if (String.IsNullOrEmpty(ConfigStreamInfo.StreamName)) {
645newConfigSourceStreamName = Host.GetStreamNameForConfigSource(ConfigStreamInfo.StreamName, newConfigSource);
809ConfigStreamInfo.StreamName,
978factoryRecord = new FactoryRecord(configKey, group, name, typeName, ConfigStreamInfo.StreamName, -1);
1121string filepath = UpdateConfigHost.GetNewStreamname(ConfigStreamInfo.StreamName);
1166if (String.IsNullOrEmpty(ConfigStreamInfo.StreamName)) {
1170ConfigStreamInfo.StreamName = filename;
1171ConfigStreamInfo.StreamVersion = MonitorStream(null, null, ConfigStreamInfo.StreamName);
1177UpdateConfigHost.AddStreamname(ConfigStreamInfo.StreamName, filename, Host.IsRemote);
1203if (ConfigStreamInfo.HasStream) {
1204using (Stream streamRead = Host.OpenStreamForRead(ConfigStreamInfo.StreamName)) {
1206throw new ConfigurationErrorsException(SR.GetString(SR.Config_file_has_changed), ConfigStreamInfo.StreamName, 0);
1217using (StreamReader reader = new StreamReader(ConfigStreamInfo.StreamName)) {
1246using (Stream streamWrite = Host.OpenStreamForWrite(ConfigStreamInfo.StreamName, null, ref writeContext)) {
1252if (ConfigStreamInfo.HasStream) {
1254ConfigStreamInfo.StreamName, NamespaceChangeNeeded, utilWriter);
1264Host.WriteCompleted(ConfigStreamInfo.StreamName, false, writeContext);
1275throw ExceptionUtil.WrapAsConfigException(SR.GetString(SR.Config_error_loading_XML_file), e, ConfigStreamInfo.StreamName, 0);
1278Host.WriteCompleted(ConfigStreamInfo.StreamName, true, writeContext);
1281ConfigStreamInfo.HasStream = true;
1282ConfigStreamInfo.ClearStreamInfos();
1283ConfigStreamInfo.StreamVersion = MonitorStream(null, null, ConfigStreamInfo.StreamName);
1905factoryRecord.Filename = ConfigStreamInfo.StreamName;
1979sectionXmlInfo.StreamVersion = ConfigStreamInfo.StreamVersion;
1993ConfigStreamInfo.StreamName, 0, ConfigStreamInfo.StreamVersion, null,
2008sectionXmlInfo.StreamVersion = ConfigStreamInfo.StreamVersion;
2027throw new ConfigurationErrorsException(SR.GetString(SR.Config_exception_in_config_section_handler, sectionRecord.ConfigKey), e, ConfigStreamInfo.StreamName, 0);
2035if (!ConfigStreamInfo.StreamInfos.Contains(streamInfo.StreamName)) {
2081ConfigStreamInfo.StreamEncoding.WebName));
2319CheckPreamble(ConfigStreamInfo.StreamEncoding.GetPreamble(), utilWriter, buffer);
3117templateStreamName = ConfigStreamInfo.StreamName;
3165preamble = ConfigStreamInfo.StreamEncoding.GetPreamble();
3241utilWriter.Write(string.Format(CultureInfo.InvariantCulture, FORMAT_CONFIGSOURCE_FILE, ConfigStreamInfo.StreamEncoding.WebName));