ServiceController_mobile.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. //
  2. // ServiceController_mobile.cs
  3. //
  4. // Author:
  5. // Alexander Köplinger ([email protected])
  6. //
  7. // (C) 2016 Xamarin, Inc.
  8. //
  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 MOBILE || XAMMAC_4_5
  30. using System;
  31. using System.Runtime.InteropServices;
  32. namespace System.ServiceProcess
  33. {
  34. public class ServiceController : IDisposable
  35. {
  36. [MonoTODO]
  37. public bool CanPauseAndContinue
  38. {
  39. get
  40. {
  41. throw new NotImplementedException ();
  42. }
  43. }
  44. [MonoTODO]
  45. public bool CanShutdown
  46. {
  47. get
  48. {
  49. throw new NotImplementedException ();
  50. }
  51. }
  52. [MonoTODO]
  53. public bool CanStop
  54. {
  55. get
  56. {
  57. throw new NotImplementedException ();
  58. }
  59. }
  60. [MonoTODO]
  61. public ServiceController[] DependentServices
  62. {
  63. get
  64. {
  65. throw new NotImplementedException ();
  66. }
  67. }
  68. [MonoTODO]
  69. public string DisplayName
  70. {
  71. get
  72. {
  73. throw new NotImplementedException ();
  74. }
  75. }
  76. [MonoTODO]
  77. public string MachineName
  78. {
  79. get
  80. {
  81. throw new NotImplementedException ();
  82. }
  83. }
  84. [MonoTODO]
  85. public SafeHandle ServiceHandle
  86. {
  87. get
  88. {
  89. throw new NotImplementedException ();
  90. }
  91. }
  92. [MonoTODO]
  93. public string ServiceName
  94. {
  95. get
  96. {
  97. throw new NotImplementedException ();
  98. }
  99. }
  100. [MonoTODO]
  101. public ServiceController[] ServicesDependedOn
  102. {
  103. get
  104. {
  105. throw new NotImplementedException ();
  106. }
  107. }
  108. [MonoTODO]
  109. public ServiceType ServiceType
  110. {
  111. get
  112. {
  113. throw new NotImplementedException ();
  114. }
  115. }
  116. [MonoTODO]
  117. public ServiceStartMode StartType
  118. {
  119. get
  120. {
  121. throw new NotImplementedException ();
  122. }
  123. }
  124. [MonoTODO]
  125. public ServiceControllerStatus Status
  126. {
  127. get
  128. {
  129. throw new NotImplementedException ();
  130. }
  131. }
  132. [MonoTODO]
  133. public ServiceController (string name)
  134. {
  135. throw new NotImplementedException ();
  136. }
  137. [MonoTODO]
  138. public ServiceController (string name, string machineName)
  139. {
  140. throw new NotImplementedException ();
  141. }
  142. [MonoTODO]
  143. public void Continue ()
  144. {
  145. throw new NotImplementedException ();
  146. }
  147. [MonoTODO]
  148. public void Dispose ()
  149. {
  150. throw new NotImplementedException ();
  151. }
  152. [MonoTODO]
  153. protected virtual void Dispose (bool disposing)
  154. {
  155. throw new NotImplementedException ();
  156. }
  157. [MonoTODO]
  158. public static ServiceController[] GetDevices ()
  159. {
  160. throw new NotImplementedException ();
  161. }
  162. [MonoTODO]
  163. public static ServiceController[] GetDevices (string machineName)
  164. {
  165. throw new NotImplementedException ();
  166. }
  167. [MonoTODO]
  168. public static ServiceController[] GetServices ()
  169. {
  170. throw new NotImplementedException ();
  171. }
  172. [MonoTODO]
  173. public static ServiceController[] GetServices (string machineName)
  174. {
  175. throw new NotImplementedException ();
  176. }
  177. [MonoTODO]
  178. public void Pause ()
  179. {
  180. throw new NotImplementedException ();
  181. }
  182. [MonoTODO]
  183. public void Refresh ()
  184. {
  185. throw new NotImplementedException ();
  186. }
  187. [MonoTODO]
  188. public void Start ()
  189. {
  190. throw new NotImplementedException ();
  191. }
  192. [MonoTODO]
  193. public void Start (string[] args)
  194. {
  195. throw new NotImplementedException ();
  196. }
  197. [MonoTODO]
  198. public void Stop ()
  199. {
  200. throw new NotImplementedException ();
  201. }
  202. [MonoTODO]
  203. public void WaitForStatus (ServiceControllerStatus desiredStatus)
  204. {
  205. throw new NotImplementedException ();
  206. }
  207. [MonoTODO]
  208. public void WaitForStatus (ServiceControllerStatus desiredStatus, TimeSpan timeout)
  209. {
  210. throw new NotImplementedException ();
  211. }
  212. }
  213. }
  214. #endif