87 references to ConfigStreamInfo
System.Configuration.ConfigurationManager (87)
System\Configuration\BaseConfigurationRecord.cs (48)
172internal bool HasStream => ConfigStreamInfo.HasStream; 248public string StreamName => ConfigStreamInfo.StreamName; 326_configStreamInfo = IsLocationConfig ? _parent.ConfigStreamInfo : new ConfigRecordStreamInfo(); 518string streamname = ConfigStreamInfo?.StreamName; 547ConfigStreamInfo.StreamName = Host.GetStreamName(_configPath); 548if (!string.IsNullOrEmpty(ConfigStreamInfo.StreamName)) 551ConfigStreamInfo.StreamVersion = MonitorStream(null, null, ConfigStreamInfo.StreamName); 552using (Stream stream = Host.OpenStreamForRead(ConfigStreamInfo.StreamName)) 560ConfigStreamInfo.HasStream = true; 563_flags[PrefetchAll] = Host.PrefetchAll(_configPath, ConfigStreamInfo.StreamName); 565using (XmlUtil xmlUtil = new XmlUtil(stream, ConfigStreamInfo.StreamName, true, _initErrors)) 567ConfigStreamInfo.StreamEncoding = xmlUtil.Reader.Encoding; 591ConfigStreamInfo.StreamName, 0)); 597ConfigStreamInfo.StreamName, 0), 615if (ConfigStreamInfo.HasStreamInfos) 617streamInfos = ConfigStreamInfo.StreamInfos; 618ConfigStreamInfo.ClearStreamInfos(); 620if (!string.IsNullOrEmpty(ConfigStreamInfo.StreamName)) 622StreamInfo fileStreamInfo = (StreamInfo)streamInfos[ConfigStreamInfo.StreamName]; 627streamInfos.Remove(ConfigStreamInfo.StreamName); 628ConfigStreamInfo.StreamInfos.Add(ConfigStreamInfo.StreamName, fileStreamInfo); 639Host.StopMonitoringStreamForChanges(streamInfo.StreamName, ConfigStreamInfo.CallbackDelegate); 698using (Stream stream = Host.OpenStreamForRead(ConfigStreamInfo.StreamName)) 702ConfigStreamInfo.HasStream = true; 704using (XmlUtil xmlUtil = new XmlUtil(stream, ConfigStreamInfo.StreamName, true, errors)) 735ConfigStreamInfo.StreamName, lineNumber), 2597Host.GetStreamNameForConfigSource(ConfigStreamInfo.StreamName, configSource); 2666fileName, lineNumber, ConfigStreamInfo.StreamVersion, rawXml, 3220StreamInfo streamInfo = (StreamInfo)ConfigStreamInfo.StreamInfos[streamname]; 3234ConfigStreamInfo.StreamInfos.Add(streamname, streamInfo); 3247StreamInfo streamInfo = (StreamInfo)ConfigStreamInfo.StreamInfos[streamname]; 3255callbackDelegate = ConfigStreamInfo.CallbackDelegate ??= OnStreamChanged; 3274StreamInfo streamInfo = (StreamInfo)ConfigStreamInfo.StreamInfos[streamname]; 3306if (ConfigStreamInfo.HasStreamInfos) 3308StreamInfo streamInfo = (StreamInfo)ConfigStreamInfo.StreamInfos[configSourceStreamName]; 3331if (current.ConfigStreamInfo.HasStreamInfos) 3334(StreamInfo)current.ConfigStreamInfo.StreamInfos[configSourceStreamName]; 3369if (forceEvaluatation && !IsInitDelayed && !string.IsNullOrEmpty(ConfigStreamInfo.StreamName)) 3383ConfigStreamInfo.StreamName, 0, null, null, 3486if (!IsLocationConfig && ConfigStreamInfo.HasStreamInfos) 3488callbackDelegate = ConfigStreamInfo.CallbackDelegate; 3489streamInfos = ConfigStreamInfo.StreamInfos; 3491ConfigStreamInfo.CallbackDelegate = null; 3492ConfigStreamInfo.ClearStreamInfos(); 3522if (configRecord.ConfigStreamInfo.HasStreamInfos) 3524foreach (StreamInfo streamInfo in configRecord.ConfigStreamInfo.StreamInfos.Values)
System\Configuration\MgmtConfigurationRecord.cs (39)
56internal string ConfigurationFilePath => UpdateConfigHost.GetNewStreamname(ConfigStreamInfo.StreamName) ?? string.Empty; 117if (ConfigStreamInfo.HasStreamInfos) 119foreach (StreamInfo streamInfo in ConfigStreamInfo.StreamInfos.Values) 419e, ConfigStreamInfo.StreamName, 0); 545if (string.IsNullOrEmpty(ConfigStreamInfo.StreamName)) 551newConfigSourceStreamName = Host.GetStreamNameForConfigSource(ConfigStreamInfo.StreamName, 701ConfigStreamInfo.StreamName, 843factoryRecord = new FactoryRecord(configKey, group, name, typeName, ConfigStreamInfo.StreamName, -1); 977if (string.IsNullOrEmpty(ConfigStreamInfo.StreamName)) 982ConfigStreamInfo.StreamName = filename; 983ConfigStreamInfo.StreamVersion = MonitorStream(null, null, ConfigStreamInfo.StreamName); 987UpdateConfigHost.AddStreamname(ConfigStreamInfo.StreamName, filename, Host.IsRemote); 1014if (ConfigStreamInfo.HasStream) 1016using (Stream streamRead = Host.OpenStreamForRead(ConfigStreamInfo.StreamName)) 1021ConfigStreamInfo.StreamName, 0); 1033using (StreamReader reader = new StreamReader(ConfigStreamInfo.StreamName)) 1060using (Stream streamWrite = Host.OpenStreamForWrite(ConfigStreamInfo.StreamName, null, 1072if (ConfigStreamInfo.HasStream) 1075ConfigStreamInfo.StreamName, NamespaceChangeNeeded, utilWriter); 1087if (streamOpened) Host.WriteCompleted(ConfigStreamInfo.StreamName, false, writeContext); 1097ConfigStreamInfo.StreamName, 0); 1100Host.WriteCompleted(ConfigStreamInfo.StreamName, true, writeContext); 1103ConfigStreamInfo.HasStream = true; 1104ConfigStreamInfo.ClearStreamInfos(); 1105ConfigStreamInfo.StreamVersion = MonitorStream(null, null, ConfigStreamInfo.StreamName); 1751factoryRecord.Filename = ConfigStreamInfo.StreamName; 1829sectionXmlInfo.StreamVersion = ConfigStreamInfo.StreamVersion; 1845ConfigStreamInfo.StreamName, 0, ConfigStreamInfo.StreamVersion, null, 1862sectionXmlInfo.StreamVersion = ConfigStreamInfo.StreamVersion; 1886ConfigStreamInfo.StreamName, 0); 1894if (!ConfigStreamInfo.StreamInfos.Contains(streamInfo.StreamName)) 1935ConfigStreamInfo.StreamEncoding.WebName)); 2197CheckPreamble(ConfigStreamInfo.StreamEncoding.GetPreamble(), utilWriter, buffer); 3015string templateStreamName = Host.IsRemote ? null : ConfigStreamInfo.StreamName; 3064preamble = ConfigStreamInfo.StreamEncoding.GetPreamble(); 3141ConfigStreamInfo.StreamEncoding.WebName));