87 references to ConfigStreamInfo
System.Configuration.ConfigurationManager (87)
System\Configuration\BaseConfigurationRecord.cs (48)
176internal bool HasStream => ConfigStreamInfo.HasStream; 252public string StreamName => ConfigStreamInfo.StreamName; 330_configStreamInfo = IsLocationConfig ? _parent.ConfigStreamInfo : new ConfigRecordStreamInfo(); 522string streamname = ConfigStreamInfo?.StreamName; 551ConfigStreamInfo.StreamName = Host.GetStreamName(_configPath); 552if (!string.IsNullOrEmpty(ConfigStreamInfo.StreamName)) 555ConfigStreamInfo.StreamVersion = MonitorStream(null, null, ConfigStreamInfo.StreamName); 556using (Stream stream = Host.OpenStreamForRead(ConfigStreamInfo.StreamName)) 564ConfigStreamInfo.HasStream = true; 567_flags[PrefetchAll] = Host.PrefetchAll(_configPath, ConfigStreamInfo.StreamName); 569using (XmlUtil xmlUtil = new XmlUtil(stream, ConfigStreamInfo.StreamName, true, _initErrors)) 571ConfigStreamInfo.StreamEncoding = xmlUtil.Reader.Encoding; 595ConfigStreamInfo.StreamName, 0)); 601ConfigStreamInfo.StreamName, 0), 619if (ConfigStreamInfo.HasStreamInfos) 621streamInfos = ConfigStreamInfo.StreamInfos; 622ConfigStreamInfo.ClearStreamInfos(); 624if (!string.IsNullOrEmpty(ConfigStreamInfo.StreamName)) 626StreamInfo fileStreamInfo = (StreamInfo)streamInfos[ConfigStreamInfo.StreamName]; 631streamInfos.Remove(ConfigStreamInfo.StreamName); 632ConfigStreamInfo.StreamInfos.Add(ConfigStreamInfo.StreamName, fileStreamInfo); 643Host.StopMonitoringStreamForChanges(streamInfo.StreamName, ConfigStreamInfo.CallbackDelegate); 702using (Stream stream = Host.OpenStreamForRead(ConfigStreamInfo.StreamName)) 706ConfigStreamInfo.HasStream = true; 708using (XmlUtil xmlUtil = new XmlUtil(stream, ConfigStreamInfo.StreamName, true, errors)) 739ConfigStreamInfo.StreamName, lineNumber), 2601Host.GetStreamNameForConfigSource(ConfigStreamInfo.StreamName, configSource); 2670fileName, lineNumber, ConfigStreamInfo.StreamVersion, rawXml, 3224StreamInfo streamInfo = (StreamInfo)ConfigStreamInfo.StreamInfos[streamname]; 3238ConfigStreamInfo.StreamInfos.Add(streamname, streamInfo); 3251StreamInfo streamInfo = (StreamInfo)ConfigStreamInfo.StreamInfos[streamname]; 3259callbackDelegate = ConfigStreamInfo.CallbackDelegate ??= OnStreamChanged; 3278StreamInfo streamInfo = (StreamInfo)ConfigStreamInfo.StreamInfos[streamname]; 3310if (ConfigStreamInfo.HasStreamInfos) 3312StreamInfo streamInfo = (StreamInfo)ConfigStreamInfo.StreamInfos[configSourceStreamName]; 3335if (current.ConfigStreamInfo.HasStreamInfos) 3338(StreamInfo)current.ConfigStreamInfo.StreamInfos[configSourceStreamName]; 3373if (forceEvaluatation && !IsInitDelayed && !string.IsNullOrEmpty(ConfigStreamInfo.StreamName)) 3387ConfigStreamInfo.StreamName, 0, null, null, 3490if (!IsLocationConfig && ConfigStreamInfo.HasStreamInfos) 3492callbackDelegate = ConfigStreamInfo.CallbackDelegate; 3493streamInfos = ConfigStreamInfo.StreamInfos; 3495ConfigStreamInfo.CallbackDelegate = null; 3496ConfigStreamInfo.ClearStreamInfos(); 3526if (configRecord.ConfigStreamInfo.HasStreamInfos) 3528foreach (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));