diff options
Diffstat (limited to 'src/mscorlib/src/System/Threading/Tasks/AsyncCausalityTracer.cs')
-rw-r--r-- | src/mscorlib/src/System/Threading/Tasks/AsyncCausalityTracer.cs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mscorlib/src/System/Threading/Tasks/AsyncCausalityTracer.cs b/src/mscorlib/src/System/Threading/Tasks/AsyncCausalityTracer.cs index c29b11a922..ec7c5aaeea 100644 --- a/src/mscorlib/src/System/Threading/Tasks/AsyncCausalityTracer.cs +++ b/src/mscorlib/src/System/Threading/Tasks/AsyncCausalityTracer.cs @@ -131,7 +131,6 @@ namespace System.Threading.Tasks private static Loggers f_LoggingOn; //assumes false by default // The precise static constructor will run first time somebody attempts to access this class - [SecuritySafeCritical] static AsyncCausalityTracer() { if (!Environment.IsWinRTSupported) return; @@ -153,7 +152,7 @@ namespace System.Threading.Tasks s_TracerFactory = (WFD.IAsyncCausalityTracerStatics)factory; EventRegistrationToken token = s_TracerFactory.add_TracingStatusChanged(new EventHandler<WFD.TracingStatusChangedEventArgs>(TracingStatusChangedHandler)); - Contract.Assert(token != default(EventRegistrationToken), "EventRegistrationToken is null"); + Debug.Assert(token != default(EventRegistrationToken), "EventRegistrationToken is null"); } catch (Exception ex) { @@ -165,7 +164,6 @@ namespace System.Threading.Tasks } - [SecuritySafeCritical] private static void TracingStatusChangedHandler(Object sender, WFD.TracingStatusChangedEventArgs args) { if (args.Enabled) |