Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

113 lines
2.9 KiB

  1. using System;
  2. using System.Text;
  3. using System.Net;
  4. using System.IO;
  5. using System.Text.RegularExpressions;
  6. using System.Runtime.Remoting;
  7. using System.Globalization;
  8. using System.Security;
  9. using System.Security.Policy;
  10. using System.Security.Permissions;
  11. using System.Collections;
  12. using System.Runtime.InteropServices;
  13. using System.Reflection;
  14. using System.Configuration.Assemblies;
  15. using System.Threading;
  16. namespace Microsoft.Fusion.ADF
  17. {
  18. //----------------------------------------------------------
  19. // ApplicationMonikerResponse
  20. //----------------------------------------------------------
  21. public class ApplicationMonikerResponse : WebResponse
  22. {
  23. ApplicationMonikerStream _appMonStream;
  24. public ApplicationMonikerResponse(Uri uri, Uri appBase, string appStorePath)
  25. {
  26. _appMonStream = new ApplicationMonikerStream(uri, appBase, appStorePath);
  27. }
  28. //----------------------------------------------------------
  29. // ContentLength
  30. //----------------------------------------------------------
  31. public override long ContentLength
  32. {
  33. get
  34. { return 0; }
  35. set
  36. { }
  37. }
  38. //----------------------------------------------------------
  39. // ContentType
  40. //----------------------------------------------------------
  41. public override string ContentType
  42. {
  43. get
  44. { return null;}
  45. set
  46. { }
  47. }
  48. //----------------------------------------------------------
  49. // Headers
  50. //----------------------------------------------------------
  51. public override WebHeaderCollection Headers
  52. {
  53. get
  54. { return null;}
  55. }
  56. //----------------------------------------------------------
  57. // ResponseUri
  58. //----------------------------------------------------------
  59. public override Uri ResponseUri
  60. {
  61. get
  62. { return null; }
  63. }
  64. //----------------------------------------------------------
  65. // Close
  66. //----------------------------------------------------------
  67. public override void Close()
  68. {
  69. }
  70. //----------------------------------------------------------
  71. // GetResponseStream
  72. //----------------------------------------------------------
  73. public override Stream GetResponseStream()
  74. {
  75. return _appMonStream;
  76. }
  77. //----------------------------------------------------------
  78. // CachedCopyExists
  79. //----------------------------------------------------------
  80. public bool CachedCopyExists()
  81. {
  82. return _appMonStream.CachedCopyExists();
  83. }
  84. //----------------------------------------------------------
  85. // GetCacheFileSize
  86. //----------------------------------------------------------
  87. public long GetCacheFileSize()
  88. {
  89. return _appMonStream.GetCacheFileSize();
  90. }
  91. //----------------------------------------------------------
  92. // Dispose
  93. //----------------------------------------------------------
  94. public void Dispose()
  95. {
  96. _appMonStream.Dispose();
  97. _appMonStream = null;
  98. }
  99. }
  100. }