Imported Upstream version 4.4.2.4

Former-commit-id: 92904c9c5915c37244316e42ba99e7b934ed7ee2
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2016-07-21 09:40:10 +00:00
parent 589d484eee
commit 0b4a830db1
343 changed files with 9849 additions and 688 deletions

View File

@ -12,7 +12,14 @@ LIBRARY = System.ServiceProcess.ServiceController.dll
KEY_FILE = ../../msfinal.pub
SIGN_FLAGS = /delaysign /keyfile:$(KEY_FILE) /nowarn:1616,1699
LIB_REFS = System
LIB_MCS_FLAGS = $(SIGN_FLAGS) /r:mscorlib /r:System.ServiceProcess.dll
ifneq (2.1, $(FRAMEWORK_VERSION))
ifndef XAMMAC_4_5
LIB_REFS += System.ServiceProcess
endif
endif
LIB_MCS_FLAGS = $(SIGN_FLAGS) /r:mscorlib
PLATFORM_DEBUG_FLAGS =

View File

@ -0,0 +1,49 @@
//
// ServiceControllerStatus_mobile.cs
//
// Author:
// Alexander Köplinger (alexander.koeplinger@xamarin.com)
//
// (C) 2016 Xamarin, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if MOBILE || XAMMAC_4_5
using System;
namespace System.ServiceProcess
{
public enum ServiceControllerStatus
{
ContinuePending = 5,
Paused = 7,
PausePending = 6,
Running = 4,
StartPending = 2,
Stopped = 1,
StopPending = 3
}
}
#endif

View File

@ -0,0 +1,246 @@
//
// ServiceController_mobile.cs
//
// Author:
// Alexander Köplinger (alexander.koeplinger@xamarin.com)
//
// (C) 2016 Xamarin, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if MOBILE || XAMMAC_4_5
using System;
using System.Runtime.InteropServices;
namespace System.ServiceProcess
{
public class ServiceController : IDisposable
{
[MonoTODO]
public bool CanPauseAndContinue
{
get
{
throw new NotImplementedException ();
}
}
[MonoTODO]
public bool CanShutdown
{
get
{
throw new NotImplementedException ();
}
}
[MonoTODO]
public bool CanStop
{
get
{
throw new NotImplementedException ();
}
}
[MonoTODO]
public ServiceController[] DependentServices
{
get
{
throw new NotImplementedException ();
}
}
[MonoTODO]
public string DisplayName
{
get
{
throw new NotImplementedException ();
}
}
[MonoTODO]
public string MachineName
{
get
{
throw new NotImplementedException ();
}
}
[MonoTODO]
public SafeHandle ServiceHandle
{
get
{
throw new NotImplementedException ();
}
}
[MonoTODO]
public string ServiceName
{
get
{
throw new NotImplementedException ();
}
}
[MonoTODO]
public ServiceController[] ServicesDependedOn
{
get
{
throw new NotImplementedException ();
}
}
[MonoTODO]
public ServiceType ServiceType
{
get
{
throw new NotImplementedException ();
}
}
[MonoTODO]
public ServiceStartMode StartType
{
get
{
throw new NotImplementedException ();
}
}
[MonoTODO]
public ServiceControllerStatus Status
{
get
{
throw new NotImplementedException ();
}
}
[MonoTODO]
public ServiceController (string name)
{
throw new NotImplementedException ();
}
[MonoTODO]
public ServiceController (string name, string machineName)
{
throw new NotImplementedException ();
}
[MonoTODO]
public void Continue ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public void Dispose ()
{
throw new NotImplementedException ();
}
[MonoTODO]
protected virtual void Dispose (bool disposing)
{
throw new NotImplementedException ();
}
[MonoTODO]
public static ServiceController[] GetDevices ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public static ServiceController[] GetDevices (string machineName)
{
throw new NotImplementedException ();
}
[MonoTODO]
public static ServiceController[] GetServices ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public static ServiceController[] GetServices (string machineName)
{
throw new NotImplementedException ();
}
[MonoTODO]
public void Pause ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public void Refresh ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public void Start ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public void Start (string[] args)
{
throw new NotImplementedException ();
}
[MonoTODO]
public void Stop ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public void WaitForStatus (ServiceControllerStatus desiredStatus)
{
throw new NotImplementedException ();
}
[MonoTODO]
public void WaitForStatus (ServiceControllerStatus desiredStatus, TimeSpan timeout)
{
throw new NotImplementedException ();
}
}
}
#endif

View File

@ -0,0 +1,47 @@
//
// ServiceStartMode_mobile.cs
//
// Author:
// Alexander Köplinger (alexander.koeplinger@xamarin.com)
//
// (C) 2016 Xamarin, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if MOBILE || XAMMAC_4_5
using System;
namespace System.ServiceProcess
{
public enum ServiceStartMode
{
Automatic = 2,
Boot = 0,
Disabled = 4,
Manual = 3,
System = 1
}
}
#endif

View File

@ -0,0 +1,50 @@
//
// ServiceType_mobile.cs
//
// Author:
// Alexander Köplinger (alexander.koeplinger@xamarin.com)
//
// (C) 2016 Xamarin, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if MOBILE || XAMMAC_4_5
using System;
namespace System.ServiceProcess
{
[Flags]
public enum ServiceType
{
Adapter = 4,
FileSystemDriver = 2,
InteractiveProcess = 256,
KernelDriver = 1,
RecognizerDriver = 8,
Win32OwnProcess = 16,
Win32ShareProcess = 32
}
}
#endif

View File

@ -1,3 +1,9 @@
TypeForwarders.cs
AssemblyInfo.cs
../../../build/common/MonoTODOAttribute.cs
ServiceController_mobile.cs
ServiceControllerStatus_mobile.cs
ServiceStartMode_mobile.cs
ServiceType_mobile.cs
TimeoutException_mobile.cs

View File

@ -0,0 +1,59 @@
//
// TimeoutException_mobile.cs
//
// Author:
// Alexander Köplinger (alexander.koeplinger@xamarin.com)
//
// (C) 2016 Xamarin, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if MOBILE || XAMMAC_4_5
using System;
namespace System.ServiceProcess
{
public class TimeoutException : Exception
{
[MonoTODO]
public TimeoutException ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public TimeoutException (string message)
{
throw new NotImplementedException ();
}
[MonoTODO]
public TimeoutException (string message, Exception innerException)
{
throw new NotImplementedException ();
}
}
}
#endif

View File

@ -20,10 +20,14 @@
// THE SOFTWARE.
//
#if !MOBILE && !XAMMAC_4_5
// TODO: These are implemented as stubs in the facade directly on mobile
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.ServiceProcess.ServiceController))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.ServiceProcess.ServiceControllerStatus))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.ServiceProcess.ServiceStartMode))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.ServiceProcess.ServiceType))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.ServiceProcess.TimeoutException))]
#endif