2 // ServiceController_mobile.cs
5 // Alexander Köplinger (alexander.koeplinger@xamarin.com)
7 // (C) 2016 Xamarin, Inc.
11 // Permission is hereby granted, free of charge, to any person obtaining
12 // a copy of this software and associated documentation files (the
13 // "Software"), to deal in the Software without restriction, including
14 // without limitation the rights to use, copy, modify, merge, publish,
15 // distribute, sublicense, and/or sell copies of the Software, and to
16 // permit persons to whom the Software is furnished to do so, subject to
17 // the following conditions:
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 #if MOBILE || XAMMAC_4_5
34 using System.Runtime.InteropServices;
36 namespace System.ServiceProcess
38 public class ServiceController : IDisposable
40 public bool CanPauseAndContinue
44 throw new PlatformNotSupportedException ();
48 public bool CanShutdown
52 throw new PlatformNotSupportedException ();
60 throw new PlatformNotSupportedException ();
64 public ServiceController[] DependentServices
68 throw new PlatformNotSupportedException ();
72 public string DisplayName
76 throw new PlatformNotSupportedException ();
80 public string MachineName
84 throw new PlatformNotSupportedException ();
88 public SafeHandle ServiceHandle
92 throw new PlatformNotSupportedException ();
96 public string ServiceName
100 throw new PlatformNotSupportedException ();
104 public ServiceController[] ServicesDependedOn
108 throw new PlatformNotSupportedException ();
112 public ServiceType ServiceType
116 throw new PlatformNotSupportedException ();
120 public ServiceStartMode StartType
124 throw new PlatformNotSupportedException ();
128 public ServiceControllerStatus Status
132 throw new PlatformNotSupportedException ();
136 public ServiceController (string name)
138 throw new PlatformNotSupportedException ();
141 public ServiceController (string name, string machineName)
143 throw new PlatformNotSupportedException ();
146 public void Continue ()
148 throw new PlatformNotSupportedException ();
151 public void Dispose ()
153 throw new PlatformNotSupportedException ();
156 protected virtual void Dispose (bool disposing)
158 throw new PlatformNotSupportedException ();
161 public static ServiceController[] GetDevices ()
163 throw new PlatformNotSupportedException ();
166 public static ServiceController[] GetDevices (string machineName)
168 throw new PlatformNotSupportedException ();
171 public static ServiceController[] GetServices ()
173 throw new PlatformNotSupportedException ();
176 public static ServiceController[] GetServices (string machineName)
178 throw new PlatformNotSupportedException ();
183 throw new PlatformNotSupportedException ();
186 public void Refresh ()
188 throw new PlatformNotSupportedException ();
193 throw new PlatformNotSupportedException ();
196 public void Start (string[] args)
198 throw new PlatformNotSupportedException ();
203 throw new PlatformNotSupportedException ();
206 public void WaitForStatus (ServiceControllerStatus desiredStatus)
208 throw new PlatformNotSupportedException ();
211 public void WaitForStatus (ServiceControllerStatus desiredStatus, TimeSpan timeout)
213 throw new PlatformNotSupportedException ();