Adding DebugProvider to help override Write and ShowDialog behavior (dotnet/coreclr...
authorMaryam Ariyan <maryam.ariyan@microsoft.com>
Mon, 22 Oct 2018 18:52:34 +0000 (11:52 -0700)
committerGitHub <noreply@github.com>
Mon, 22 Oct 2018 18:52:34 +0000 (11:52 -0700)
commite5b0edff9014dc1aa408c020dbcd08d66985994c
tree9de5e2a05c7bd8a33491de64c41c25a1713afa23
parent7b48019ee907d4de1cc66169c53315aaa287a71d
Adding DebugProvider to help override Write and ShowDialog behavior (dotnet/coreclr#20419)

* Adding DebugProvider to help override Dialog Write and ShowDialog behavior.

- New SetProvider returns previous DebugProvider while exchanging to new one
- Will keep the s_WriteCore delegates for tests until the next PR to fix indentation is merged

Related to: dotnet/corefxdotnet/coreclr#3708, dotnet/corefxdotnet/coreclr#31003

* Move ShowDialog and Write logic from Debug to DebugProvider

* disabling DebugTests

Commit migrated from https://github.com/dotnet/coreclr/commit/961f131758e510927676e13bc2f4533b3e0cb42a
src/coreclr/src/System.Private.CoreLib/System.Private.CoreLib.csproj
src/coreclr/src/System.Private.CoreLib/src/System/Diagnostics/DebugProvider.Windows.cs [moved from src/coreclr/src/System.Private.CoreLib/src/System/Diagnostics/Debug.Windows.cs with 96% similarity]
src/coreclr/tests/CoreFX/CoreFX.issues.json
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Debug.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/DebugProvider.Unix.cs [moved from src/libraries/System.Private.CoreLib/src/System/Diagnostics/Debug.Unix.cs with 97% similarity]
src/libraries/System.Private.CoreLib/src/System/Diagnostics/DebugProvider.cs [new file with mode: 0644]