Cleanup '#if CORE' in EtwActivity.cs (#4455)

This commit is contained in:
Ilya 2017-08-02 20:59:39 +04:00 committed by Aditya Patwardhan
parent 82ad9da3a7
commit 65643e1b5d

View File

@ -43,13 +43,11 @@ namespace System.Management.Automation.Tracing
/// </summary>
public delegate void CallbackWithState(object state);
#if !CORECLR // System.Timers.Timer is not available in CoreCLR
/// <summary>
/// Delegates that defines a call back with two parameters; state and ElapsedEventArgs.
/// It will be used in System.Timers.Timer scenarios.
/// </summary>
public delegate void CallbackWithStateAndArgs(object state, System.Timers.ElapsedEventArgs args);
#endif
/// <summary>
/// ETW events argument class
@ -175,7 +173,6 @@ namespace System.Management.Automation.Tracing
this.asyncCallback = callback;
}
#if !CORECLR // System.Timers.Timer is not available in CoreCLR
/// <summary>
/// It is to be used in System.Timers.Timer scenarios.
/// </summary>
@ -211,7 +208,7 @@ namespace System.Management.Automation.Tracing
Correlate();
this.callbackWithStateAndArgs(state, args);
}
#endif
/// <summary>
/// Correlate
/// </summary>
@ -412,7 +409,6 @@ namespace System.Management.Automation.Tracing
return new CorrelatedCallback(this, callback).Callback;
}
#if !CORECLR // System.Timers.Timer is not available in CoreCLR
/// <summary>
/// Wraps a callback with one object param and one ElapsedEventArgs object
/// This is menat to be used in System.Timers.Timer scenarios.
@ -427,7 +423,6 @@ namespace System.Management.Automation.Tracing
}
return new CorrelatedCallback(this, callback).Callback;
}
#endif
/// <summary>
/// The provider where the tracing messages will be written to.