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