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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="StreamUpdate.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.    
  18.     //
  19.     // Tracks updates to a stream.
  20.     //
  21.     internal class StreamUpdate
  22.     {
  23.         private string _newStreamname;
  24.         private bool _writeCompleted;
  25.        
  26.         internal StreamUpdate(string newStreamname)
  27.         {
  28.             _newStreamname = newStreamname;
  29.         }
  30.        
  31.         // desired new stream name
  32.         internal string NewStreamname {
  33.             get { return _newStreamname; }
  34.         }
  35.        
  36.         // indicates whether the change from the old stream name
  37.         // to the new stream name has been completed.
  38.         internal bool WriteCompleted {
  39.             get { return _writeCompleted; }
  40.             set { _writeCompleted = value; }
  41.         }
  42.     }
  43. }

Developer Fusion