提交 3269cebe 编写于 作者: H Heejae Chang

address PR feedbacks.

上级 2325f6b0
{
"host": "desktopClr",
"hostId": "RoslynCodeAnalysisService64",
"hostId": "RoslynCodeAnalysisService",
"hostGroupAllowed": true,
"entryPoint": {
"assemblyPath": "Microsoft.CodeAnalysis.Remote.ServiceHub.dll",
......
{
"host": "desktopClr",
"hostId": "RoslynCodeAnalysisService64",
"hostId": "RoslynCodeAnalysisService",
"hostGroupAllowed": true,
"entryPoint": {
"assemblyPath": "Microsoft.CodeAnalysis.Remote.ServiceHub.dll",
......
{
"host": "desktopClr",
"hostId": "RoslynCodeAnalysisService64",
"hostId": "RoslynCodeAnalysisService",
"hostGroupAllowed": true,
"entryPoint": {
"assemblyPath": "Microsoft.CodeAnalysis.Remote.ServiceHub.dll",
......
{
"host": "desktopClr",
"hostId": "RoslynCodeAnalysisService64",
"hostId": "RoslynCodeAnalysisService",
"hostGroupAllowed": true,
"entryPoint": {
"assemblyPath": "Microsoft.CodeAnalysis.Remote.ServiceHub.dll",
......
......@@ -54,10 +54,8 @@ public Task CalculateDiagnosticsAsync(DiagnosticArguments arguments, string stre
}, cancellationToken);
}
private async Task<int> SerializeDiagnosticResultAsync(string streamName, DiagnosticAnalysisResultMap<string, DiagnosticAnalysisResultBuilder> result, CancellationToken cancellationToken)
private async Task SerializeDiagnosticResultAsync(string streamName, DiagnosticAnalysisResultMap<string, DiagnosticAnalysisResultBuilder> result, CancellationToken cancellationToken)
{
var count = 0;
using (RoslynLogger.LogBlock(FunctionId.CodeAnalysisService_SerializeDiagnosticResultAsync, GetResultLogInfo, result, cancellationToken))
using (var stream = await DirectStream.GetAsync(streamName, cancellationToken).ConfigureAwait(false))
{
......@@ -72,8 +70,6 @@ private async Task<int> SerializeDiagnosticResultAsync(string streamName, Diagno
await stream.FlushAsync(cancellationToken).ConfigureAwait(false);
}
return count;
}
private static string GetResultLogInfo(DiagnosticAnalysisResultMap<string, DiagnosticAnalysisResultBuilder> result)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册