The Labs \ Source Viewer \ SSCLI \ System.Configuration \ StreamInfo

  1. //------------------------------------------------------------------------------
  2. // <copyright file="StreamInfo.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. namespace System.Configuration
  16. {
  17.     using System.Configuration.Internal;
  18.     using System.Collections;
  19.     using System.Collections.Specialized;
  20.     using System.Configuration;
  21.     using System.Globalization;
  22.     using System.IO;
  23.     using System.Runtime.InteropServices;
  24.     using System.Security.Permissions;
  25.     using System.Security;
  26.     using System.Text;
  27.     using System.Xml;
  28.    
  29.     // Information about a stream used in configuration
  30.     class StreamInfo
  31.     {
  32.         private string _sectionName;
  33.         // the section the stream contains for configSource, null for a full config file
  34.         private string _configSource;
  35.         // the configSource directive that generated this stream, null for a full config file
  36.         private string _streamName;
  37.         // name of the stream
  38.         private bool _isMonitored;
  39.         // is the stream currently monitored?
  40.         private object _version;
  41.         // version that we're monitoring
  42.         internal StreamInfo(string sectionName, string configSource, string streamName)
  43.         {
  44.             _sectionName = sectionName;
  45.             _configSource = configSource;
  46.             _streamName = streamName;
  47.         }
  48.        
  49.         private StreamInfo()
  50.         {
  51.         }
  52.        
  53.         internal StreamInfo Clone()
  54.         {
  55.             StreamInfo clone = new StreamInfo();
  56.            
  57.             clone._sectionName = this._sectionName;
  58.             clone._configSource = this._configSource;
  59.             clone._streamName = this._streamName;
  60.             clone._isMonitored = this._isMonitored;
  61.             clone._version = this._version;
  62.            
  63.             return clone;
  64.         }
  65.        
  66.         internal string SectionName {
  67.             get { return _sectionName; }
  68.         }
  69.        
  70.         internal string ConfigSource {
  71.             get { return _configSource; }
  72.         }
  73.        
  74.         internal string StreamName {
  75.             get { return _streamName; }
  76.         }
  77.        
  78.         internal bool IsMonitored {
  79.             get { return _isMonitored; }
  80.             set { _isMonitored = value; }
  81.         }
  82.        
  83.         internal object Version {
  84.             get { return _version; }
  85.             set { _version = value; }
  86.         }
  87.     }
  88. }

Developer Fusion