You've already forked linux-packaging-mono
Imported Upstream version 4.4.2.4
Former-commit-id: 92904c9c5915c37244316e42ba99e7b934ed7ee2
This commit is contained in:
parent
589d484eee
commit
0b4a830db1
@@ -29,8 +29,6 @@
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
#if !NET_2_1
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
@@ -137,5 +135,3 @@ namespace Microsoft.Win32
|
||||
}
|
||||
}
|
||||
|
||||
#endif // NET_2_1
|
||||
|
||||
|
@@ -27,8 +27,6 @@
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
#if !NET_2_1
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
@@ -51,5 +49,3 @@ namespace Microsoft.Win32
|
||||
|
||||
}
|
||||
|
||||
#endif // NET_2_1
|
||||
|
||||
|
@@ -29,8 +29,6 @@
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
#if !NET_2_1
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Collections;
|
||||
@@ -44,6 +42,50 @@ using Microsoft.Win32.SafeHandles;
|
||||
|
||||
namespace Microsoft.Win32
|
||||
{
|
||||
|
||||
#if MOBILE
|
||||
public sealed class RegistryKey : IDisposable
|
||||
{
|
||||
internal RegistryKey (RegistryHive hiveId)
|
||||
{
|
||||
throw new PlatformNotSupportedException ();
|
||||
}
|
||||
|
||||
public void Dispose ()
|
||||
{
|
||||
}
|
||||
|
||||
public RegistryKey CreateSubKey (string subkey)
|
||||
{
|
||||
throw new PlatformNotSupportedException ();
|
||||
}
|
||||
|
||||
public object GetValue (string name, object defaultValue)
|
||||
{
|
||||
throw new PlatformNotSupportedException ();
|
||||
}
|
||||
|
||||
public static object GetValue (string keyName, string valueName, object defaultValue)
|
||||
{
|
||||
throw new PlatformNotSupportedException ();
|
||||
}
|
||||
|
||||
public RegistryKey OpenSubKey (string name, bool writable)
|
||||
{
|
||||
throw new PlatformNotSupportedException ();
|
||||
}
|
||||
|
||||
public void SetValue (string name, object value)
|
||||
{
|
||||
}
|
||||
|
||||
public void SetValue (string name, object value, RegistryValueKind valueKind)
|
||||
{
|
||||
}
|
||||
|
||||
// TODO: Finish full contract API
|
||||
}
|
||||
#else
|
||||
/// <summary>
|
||||
/// Wrapper class for Windows Registry Entry.
|
||||
/// </summary>
|
||||
@@ -693,7 +735,6 @@ namespace Microsoft.Win32
|
||||
}
|
||||
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif // NET_2_1
|
||||
|
||||
|
@@ -25,8 +25,6 @@
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
#if !NET_2_1
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Microsoft.Win32
|
||||
@@ -44,5 +42,3 @@ namespace Microsoft.Win32
|
||||
}
|
||||
}
|
||||
|
||||
#endif // NET_2_1
|
||||
|
||||
|
@@ -26,8 +26,6 @@
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
#if !NET_2_1
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.Win32
|
||||
@@ -39,5 +37,3 @@ namespace Microsoft.Win32
|
||||
}
|
||||
}
|
||||
|
||||
#endif // NET_2_1
|
||||
|
||||
|
@@ -0,0 +1,49 @@
|
||||
//
|
||||
// EventDataAttribute.cs
|
||||
//
|
||||
// Authors:
|
||||
// Alexander Köplinger <alexander.koeplinger@xamarin.com>
|
||||
//
|
||||
// Copyright (C) 2016 Xamarin Inc (http://www.xamarin.com)
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace System.Diagnostics.Tracing
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = false)]
|
||||
public class EventDataAttribute : Attribute
|
||||
{
|
||||
[MonoTODO]
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
set
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,62 @@
|
||||
//
|
||||
// EventFieldAttribute.cs
|
||||
//
|
||||
// Authors:
|
||||
// Alexander Köplinger <alexander.koeplinger@xamarin.com>
|
||||
//
|
||||
// Copyright (C) 2016 Xamarin Inc (http://www.xamarin.com)
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace System.Diagnostics.Tracing
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Property)]
|
||||
public class EventFieldAttribute : Attribute
|
||||
{
|
||||
[MonoTODO]
|
||||
public EventFieldFormat Format
|
||||
{
|
||||
get
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
set
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public EventFieldTags Tags
|
||||
{
|
||||
get
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
set
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,43 @@
|
||||
//
|
||||
// EventFieldFormat.cs
|
||||
//
|
||||
// Authors:
|
||||
// Alexander Köplinger <alexander.koeplinger@xamarin.com>
|
||||
//
|
||||
// Copyright (C) 2016 Xamarin Inc (http://www.xamarin.com)
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace System.Diagnostics.Tracing
|
||||
{
|
||||
public enum EventFieldFormat
|
||||
{
|
||||
Boolean = 3,
|
||||
Default = 0,
|
||||
Hexadecimal = 4,
|
||||
HResult = 15,
|
||||
Json = 12,
|
||||
String = 2,
|
||||
Xml = 11
|
||||
}
|
||||
}
|
@@ -0,0 +1,38 @@
|
||||
//
|
||||
// EventFieldTags.cs
|
||||
//
|
||||
// Authors:
|
||||
// Alexander Köplinger <alexander.koeplinger@xamarin.com>
|
||||
//
|
||||
// Copyright (C) 2016 Xamarin Inc (http://www.xamarin.com)
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace System.Diagnostics.Tracing
|
||||
{
|
||||
[Flags]
|
||||
public enum EventFieldTags
|
||||
{
|
||||
None = 0
|
||||
}
|
||||
}
|
@@ -0,0 +1,37 @@
|
||||
//
|
||||
// EventIgnoreAttribute.cs
|
||||
//
|
||||
// Authors:
|
||||
// Alexander Köplinger <alexander.koeplinger@xamarin.com>
|
||||
//
|
||||
// Copyright (C) 2016 Xamarin Inc (http://www.xamarin.com)
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace System.Diagnostics.Tracing
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Property)]
|
||||
public class EventIgnoreAttribute : Attribute
|
||||
{
|
||||
}
|
||||
}
|
71
mcs/class/corlib/System.Diagnostics.Tracing/EventListener.cs
Normal file
71
mcs/class/corlib/System.Diagnostics.Tracing/EventListener.cs
Normal file
@@ -0,0 +1,71 @@
|
||||
//
|
||||
// EventListener.cs
|
||||
//
|
||||
// Authors:
|
||||
// Frederik Carlier <frederik.carlier@quamotion.mobi>
|
||||
//
|
||||
// Copyright (C) 2015 Quamotion (http://quamotion.mobi)
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace System.Diagnostics.Tracing
|
||||
{
|
||||
public abstract class EventListener : IDisposable
|
||||
{
|
||||
protected EventListener ()
|
||||
{
|
||||
}
|
||||
|
||||
public static int EventSourceIndex(EventSource eventSource)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public void EnableEvents (EventSource eventSource, EventLevel level)
|
||||
{
|
||||
}
|
||||
|
||||
public void EnableEvents (EventSource eventSource, EventLevel level, EventKeywords matchAnyKeyword)
|
||||
{
|
||||
}
|
||||
|
||||
public void EnableEvents (EventSource eventSource, EventLevel level, EventKeywords matchAnyKeyword, IDictionary<string, string> arguments)
|
||||
{
|
||||
}
|
||||
|
||||
public void DisableEvents (EventSource eventSource)
|
||||
{
|
||||
}
|
||||
|
||||
protected internal virtual void OnEventSourceCreated (EventSource eventSource)
|
||||
{
|
||||
}
|
||||
|
||||
protected internal abstract void OnEventWritten (EventWrittenEventArgs eventData);
|
||||
|
||||
public virtual void Dispose()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,42 @@
|
||||
//
|
||||
// EventManifestOptions.cs
|
||||
//
|
||||
// Authors:
|
||||
// Alexander Köplinger <alexander.koeplinger@xamarin.com>
|
||||
//
|
||||
// Copyright (C) 2016 Xamarin Inc (http://www.xamarin.com)
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace System.Diagnostics.Tracing
|
||||
{
|
||||
[Flags]
|
||||
public enum EventManifestOptions
|
||||
{
|
||||
AllCultures = 2,
|
||||
AllowEventSourceOverride = 8,
|
||||
None = 0,
|
||||
OnlyIfNeededForRegistration = 4,
|
||||
Strict = 1
|
||||
}
|
||||
}
|
@@ -3,8 +3,10 @@
|
||||
//
|
||||
// Authors:
|
||||
// Marek Safar <marek.safar@gmail.com>
|
||||
// Frederik Carlier <frederik.carlier@quamotion.mobi>
|
||||
//
|
||||
// Copyright (C) 2014 Xamarin Inc (http://www.xamarin.com)
|
||||
// Copyrithg (C) 2015 Quamotion (http://quamotion.mobi)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
@@ -31,6 +33,12 @@ namespace System.Diagnostics.Tracing
|
||||
{
|
||||
public class EventSource : IDisposable
|
||||
{
|
||||
protected internal struct EventData
|
||||
{
|
||||
public IntPtr DataPointer { get; set; }
|
||||
public int Size { get; set; }
|
||||
}
|
||||
|
||||
protected EventSource ()
|
||||
{
|
||||
this.Name = this.GetType().Name;
|
||||
@@ -150,50 +158,62 @@ namespace System.Diagnostics.Tracing
|
||||
|
||||
protected void WriteEvent (int eventId)
|
||||
{
|
||||
WriteEvent (eventId, new object[] { } );
|
||||
}
|
||||
|
||||
protected void WriteEvent (int eventId, byte[] arg1)
|
||||
{
|
||||
WriteEvent (eventId, new object[] { arg1 } );
|
||||
}
|
||||
|
||||
protected void WriteEvent (int eventId, int arg1)
|
||||
{
|
||||
WriteEvent (eventId, new object[] { arg1 } );
|
||||
}
|
||||
|
||||
protected void WriteEvent (int eventId, string arg1)
|
||||
{
|
||||
WriteEvent (eventId, new object[] { arg1 } );
|
||||
}
|
||||
|
||||
protected void WriteEvent (int eventId, int arg1, int arg2)
|
||||
{
|
||||
WriteEvent (eventId, new object[] { arg1, arg2 } );
|
||||
}
|
||||
|
||||
protected void WriteEvent (int eventId, int arg1, int arg2, int arg3)
|
||||
{
|
||||
WriteEvent (eventId, new object[] { arg1, arg2, arg3 } );
|
||||
}
|
||||
|
||||
protected void WriteEvent (int eventId, int arg1, string arg2)
|
||||
{
|
||||
WriteEvent (eventId, new object[] { arg1, arg2 } );
|
||||
}
|
||||
|
||||
protected void WriteEvent (int eventId, long arg1)
|
||||
{
|
||||
WriteEvent (eventId, new object[] { arg1 } );
|
||||
}
|
||||
|
||||
protected void WriteEvent (int eventId, long arg1, byte[] arg2)
|
||||
{
|
||||
WriteEvent (eventId, new object[] { arg1, arg2 } );
|
||||
}
|
||||
|
||||
protected void WriteEvent (int eventId, long arg1, long arg2)
|
||||
{
|
||||
WriteEvent (eventId, new object[] { arg1, arg2 } );
|
||||
}
|
||||
|
||||
protected void WriteEvent (int eventId, long arg1, long arg2, long arg3)
|
||||
{
|
||||
WriteEvent (eventId, new object[] { arg1, arg2, arg3 } );
|
||||
}
|
||||
|
||||
protected void WriteEvent (int eventId, long arg1, string arg2)
|
||||
{
|
||||
WriteEvent (eventId, new object[] { arg1, arg2 } );
|
||||
}
|
||||
|
||||
protected void WriteEvent (int eventId, params object[] args)
|
||||
@@ -202,22 +222,27 @@ namespace System.Diagnostics.Tracing
|
||||
|
||||
protected void WriteEvent (int eventId, string arg1, int arg2)
|
||||
{
|
||||
WriteEvent (eventId, new object[] { arg1, arg2 } );
|
||||
}
|
||||
|
||||
protected void WriteEvent (int eventId, string arg1, int arg2, int arg3)
|
||||
{
|
||||
WriteEvent (eventId, new object[] { arg1, arg2, arg3 } );
|
||||
}
|
||||
|
||||
protected void WriteEvent (int eventId, string arg1, long arg2)
|
||||
{
|
||||
WriteEvent (eventId, new object[] { arg1, arg2 } );
|
||||
}
|
||||
|
||||
protected void WriteEvent (int eventId, string arg1, string arg2)
|
||||
{
|
||||
WriteEvent (eventId, new object[] { arg1, arg2 } );
|
||||
}
|
||||
|
||||
protected void WriteEvent (int eventId, string arg1, string arg2, string arg3)
|
||||
{
|
||||
WriteEvent (eventId, new object[] { arg1, arg2, arg3 } );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,50 @@
|
||||
//
|
||||
// EventSourceException.cs
|
||||
//
|
||||
// Authors:
|
||||
// Alexander Köplinger <alexander.koeplinger@xamarin.com>
|
||||
//
|
||||
// Copyright (C) 2016 Xamarin Inc (http://www.xamarin.com)
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace System.Diagnostics.Tracing
|
||||
{
|
||||
public class EventSourceException : Exception
|
||||
{
|
||||
[MonoTODO]
|
||||
public EventSourceException ()
|
||||
{
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public EventSourceException (string message)
|
||||
{
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public EventSourceException (string message, Exception innerException)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,124 @@
|
||||
//
|
||||
// EventWrittenEventArgs.cs
|
||||
//
|
||||
// Authors:
|
||||
// Frederik Carlier <frederik.carlier@quamotion.mobi>
|
||||
//
|
||||
// Copyright (C) 2015 Quamotion (http://quamotion.mobi)
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace System.Diagnostics.Tracing
|
||||
{
|
||||
public class EventWrittenEventArgs : EventArgs
|
||||
{
|
||||
internal EventWrittenEventArgs (EventSource eventSource)
|
||||
{
|
||||
this.EventSource = eventSource;
|
||||
}
|
||||
|
||||
public Guid ActivityId
|
||||
{
|
||||
get { return EventSource.CurrentThreadActivityId; }
|
||||
}
|
||||
|
||||
public EventChannel Channel
|
||||
{
|
||||
get { return EventChannel.None; }
|
||||
}
|
||||
|
||||
public int EventId
|
||||
{
|
||||
get;
|
||||
internal set;
|
||||
}
|
||||
|
||||
public string EventName
|
||||
{
|
||||
get;
|
||||
internal set;
|
||||
}
|
||||
|
||||
public EventSource EventSource
|
||||
{
|
||||
get;
|
||||
private set;
|
||||
}
|
||||
|
||||
public EventKeywords Keywords
|
||||
{
|
||||
get { return EventKeywords.None; }
|
||||
}
|
||||
|
||||
public EventLevel Level
|
||||
{
|
||||
get { return EventLevel.LogAlways; }
|
||||
}
|
||||
|
||||
public string Message
|
||||
{
|
||||
get;
|
||||
internal set;
|
||||
}
|
||||
|
||||
public EventOpcode Opcode
|
||||
{
|
||||
get { return EventOpcode.Info; }
|
||||
}
|
||||
|
||||
public ReadOnlyCollection<object> Payload
|
||||
{
|
||||
get;
|
||||
internal set;
|
||||
}
|
||||
|
||||
public ReadOnlyCollection<string> PayloadNames
|
||||
{
|
||||
get;
|
||||
internal set;
|
||||
}
|
||||
|
||||
public Guid RelatedActivityId
|
||||
{
|
||||
get;
|
||||
internal set;
|
||||
}
|
||||
|
||||
public EventTags Tags
|
||||
{
|
||||
get { return EventTags.None; }
|
||||
}
|
||||
|
||||
public EventTask Task
|
||||
{
|
||||
get { return EventTask.None; }
|
||||
}
|
||||
|
||||
public byte Version
|
||||
{
|
||||
get { return 0; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -128,12 +128,22 @@ namespace System.Globalization
|
||||
get {
|
||||
return Thread.CurrentThread.CurrentCulture;
|
||||
}
|
||||
#if NETSTANDARD
|
||||
set {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
public static CultureInfo CurrentUICulture {
|
||||
get {
|
||||
return Thread.CurrentThread.CurrentUICulture;
|
||||
}
|
||||
#if NETSTANDARD
|
||||
set {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
internal static CultureInfo ConstructCurrentCulture ()
|
||||
|
@@ -25,7 +25,6 @@
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
#if !FULL_AOT_RUNTIME || IOS_REFLECTION
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Reflection.Emit {
|
||||
@@ -87,5 +86,3 @@ namespace System.Reflection.Emit {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@@ -26,8 +26,6 @@
|
||||
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
|
||||
#if !FULL_AOT_RUNTIME || IOS_REFLECTION
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Reflection.Emit {
|
||||
@@ -151,4 +149,3 @@ namespace System.Reflection.Emit {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
@@ -1,4 +1,3 @@
|
||||
#if !FULL_AOT_RUNTIME || IOS_REFLECTION
|
||||
namespace System.Reflection.Emit {
|
||||
static class OpCodeNames {
|
||||
internal static readonly string [] names = {
|
||||
@@ -309,4 +308,3 @@ namespace System.Reflection.Emit {
|
||||
};
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
@@ -25,7 +25,6 @@
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
#if !FULL_AOT_RUNTIME || IOS_REFLECTION
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Reflection.Emit {
|
||||
@@ -75,4 +74,3 @@ namespace System.Reflection.Emit {
|
||||
}
|
||||
|
||||
}
|
||||
#endif
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user