The Labs \ Source Viewer \ SSCLI \ System.Net \ CloseExState

  1. //------------------------------------------------------------------------------
  2. // <copyright file="RequestCacheManager.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. //
  16. // The file contains two streams used in conjunction with caching.
  17. // The first class will combine two streams for reading into just one continues stream.
  18. // The second class will forward (as writes) to external stream all reads issued on a "this" stream.
  19. //
  20. namespace System.Net
  21. {
  22.    
  23.     [Flags()]
  24.     internal enum CloseExState
  25.     {
  26.         Normal = 0,
  27.         // just a close
  28.         Abort = 1,
  29.         // unconditionaly release resources
  30.         Silent = 2
  31.         // do not throw on close if possible
  32.     }
  33.     internal interface ICloseEx
  34.     {
  35.         void CloseEx(CloseExState closeState);
  36.     }
  37. }

Developer Fusion