提交 3f43feb2 编写于 作者: S Sam Harwell

Rename IntegrationTestTraceListener to WatsonTraceListener

上级 2c96990f
......@@ -99,7 +99,7 @@ private void StartServiceCallback(object sender, EventArgs e)
{
AppDomain.CurrentDomain.AssemblyResolve += CurrentDomainAssemblyResolve;
IntegrationTestTraceListener.Install();
WatsonTraceListener.Install();
_service = new IntegrationService();
......
......@@ -15,7 +15,7 @@
<IncludeDebugSymbolsInLocalVSIXDeployment>true</IncludeDebugSymbolsInLocalVSIXDeployment>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\..\..\Workspaces\Remote\ServiceHub\IntegrationTestTraceListener.cs" Link="IntegrationTestTraceListener.cs" />
<Compile Include="..\..\..\Workspaces\Remote\ServiceHub\WatsonTraceListener.cs" Link="WatsonTraceListener.cs" />
</ItemGroup>
<ItemGroup Label="PkgDef">
<PkgDefPackageRegistration Include="{d02dac01-ddd0-4ecc-8687-79a554852b14}"
......
......@@ -31,7 +31,6 @@
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.Remote.Razor" Key="$(RazorKey)" WorkItem="https://github.com/dotnet/roslyn/issues/35079" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\ServiceHub\IntegrationTestTraceListener.cs" Link="Shared\IntegrationTestTraceListener.cs" />
<Compile Include="..\ServiceHub\Shared\RoslynJsonConverter.cs">
<Link>Shared\RoslynJsonConverter.cs</Link>
</Compile>
......@@ -44,5 +43,6 @@
<Compile Include="..\ServiceHub\Shared\RemoteEndPoint.cs">
<Link>Shared\RemoteEndPoint.cs</Link>
</Compile>
<Compile Include="..\ServiceHub\WatsonTraceListener.cs" Link="Shared\WatsonTraceListener.cs" />
</ItemGroup>
</Project>
\ No newline at end of file
......@@ -39,7 +39,7 @@ internal abstract class ServiceBase : IDisposable
static ServiceBase()
{
// Use a TraceListener hook to intercept assertion failures and report them through FatalError.
IntegrationTestTraceListener.Install();
WatsonTraceListener.Install();
}
protected ServiceBase(IServiceProvider serviceProvider, Stream stream, IEnumerable<JsonConverter>? jsonConverters = null)
......
......@@ -10,7 +10,7 @@ namespace Microsoft.CodeAnalysis.Remote
{
using Debugger = System.Diagnostics.Debugger;
internal class IntegrationTestTraceListener : TraceListener
internal class WatsonTraceListener : TraceListener
{
public override void Fail(string message, string detailMessage)
{
......@@ -96,7 +96,7 @@ private static void Exit(string message)
internal static void Install()
{
Trace.Listeners.Clear();
Trace.Listeners.Add(new IntegrationTestTraceListener());
Trace.Listeners.Add(new WatsonTraceListener());
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册