HostingEnvironment.cs 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. //
  2. // System.Web.Hosting.HostingEnvironment.cs
  3. //
  4. // Author:
  5. // Chris Toshok ([email protected])
  6. //
  7. //
  8. // Copyright (C) 2005 Novell, Inc (http://www.novell.com)
  9. //
  10. // Permission is hereby granted, free of charge, to any person obtaining
  11. // a copy of this software and associated documentation files (the
  12. // "Software"), to deal in the Software without restriction, including
  13. // without limitation the rights to use, copy, modify, merge, publish,
  14. // distribute, sublicense, and/or sell copies of the Software, and to
  15. // permit persons to whom the Software is furnished to do so, subject to
  16. // the following conditions:
  17. //
  18. // The above copyright notice and this permission notice shall be
  19. // included in all copies or substantial portions of the Software.
  20. //
  21. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  22. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  23. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  24. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  25. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  26. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  27. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  28. //
  29. #if NET_2_0
  30. using System;
  31. using System.Web.Caching;
  32. namespace System.Web.Hosting {
  33. public sealed class HostingEnvironment : MarshalByRefObject
  34. {
  35. [MonoTODO]
  36. public HostingEnvironment ()
  37. {
  38. }
  39. [MonoTODO]
  40. public static string ApplicationID {
  41. get { throw new NotImplementedException (); }
  42. }
  43. [MonoTODO]
  44. public static string ApplicationPhysicalPath {
  45. get { throw new NotImplementedException (); }
  46. }
  47. [MonoTODO]
  48. public static string ApplicationVirtualPath {
  49. get { throw new NotImplementedException (); }
  50. }
  51. [MonoTODO]
  52. public static Cache Cache {
  53. get { throw new NotImplementedException (); }
  54. }
  55. [MonoTODO]
  56. public static Exception InitializationException {
  57. get { throw new NotImplementedException (); }
  58. }
  59. [MonoTODO]
  60. public static bool IsHosted {
  61. get { throw new NotImplementedException (); }
  62. }
  63. [MonoTODO]
  64. public static ApplicationShutdownReason ShutdownReason {
  65. get { throw new NotImplementedException (); }
  66. }
  67. [MonoTODO]
  68. public static string SiteName {
  69. get { throw new NotImplementedException (); }
  70. }
  71. #if notyet
  72. [MonoTODO]
  73. public static VirtualPathProvider VirtualPathProvider {
  74. get { throw new NotImplementedException (); }
  75. }
  76. #endif
  77. [MonoTODO]
  78. public static void DecrementBusyCount ()
  79. {
  80. throw new NotImplementedException ();
  81. }
  82. [MonoTODO]
  83. public static IDisposable Impersonate ()
  84. {
  85. throw new NotImplementedException ();
  86. }
  87. [MonoTODO]
  88. public static IDisposable Impersonate (IntPtr token)
  89. {
  90. throw new NotImplementedException ();
  91. }
  92. [MonoTODO]
  93. public static IDisposable Impersonate (IntPtr userToken, string virtualPath)
  94. {
  95. throw new NotImplementedException ();
  96. }
  97. [MonoTODO]
  98. public static void IncrementBusyCount ()
  99. {
  100. throw new NotImplementedException ();
  101. }
  102. [MonoTODO]
  103. public override object InitializeLifetimeService ()
  104. {
  105. throw new NotImplementedException ();
  106. }
  107. [MonoTODO]
  108. public static void InitiateShutdown ()
  109. {
  110. throw new NotImplementedException ();
  111. }
  112. [MonoTODO]
  113. public static string MapPath (string virtualPath)
  114. {
  115. throw new NotImplementedException ();
  116. }
  117. [MonoTODO]
  118. public static void RegisterObject (IRegisteredObject obj)
  119. {
  120. throw new NotImplementedException ();
  121. }
  122. #if notyet
  123. [MonoTODO]
  124. public static void RegisterVirtualPathProvider (VirtualPathProvider virtualPathProvider)
  125. {
  126. throw new NotImplementedException ();
  127. }
  128. #endif
  129. [MonoTODO]
  130. public static IDisposable SetCultures (string virtualPath)
  131. {
  132. throw new NotImplementedException ();
  133. }
  134. [MonoTODO]
  135. public static IDisposable SetCultures ()
  136. {
  137. throw new NotImplementedException ();
  138. }
  139. [MonoTODO]
  140. public static void UnregisterObject (IRegisteredObject obj)
  141. {
  142. throw new NotImplementedException ();
  143. }
  144. }
  145. }
  146. #endif