Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit 4fc1d60

Browse files
Brad ChristensenSteveSandersonMS
authored andcommitted
Remove cancellationToken parameter as the method is no longer async
1 parent 1d76284 commit 4fc1d60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Microsoft.AspNetCore.NodeServices/HostingModels/SocketNodeInstance.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ protected override async Task<T> InvokeExportAsync<T>(NodeInvocationInfo invocat
9292
virtualConnection = _virtualConnectionClient.OpenVirtualConnection();
9393

9494
// Send request
95-
WriteJsonLine(virtualConnection, invocationInfo, cancellationToken);
95+
WriteJsonLine(virtualConnection, invocationInfo);
9696

9797
// Determine what kind of response format is expected
9898
if (typeof(T) == typeof(Stream))
@@ -172,7 +172,7 @@ protected override void Dispose(bool disposing)
172172
base.Dispose(disposing);
173173
}
174174

175-
private static void WriteJsonLine(Stream stream, object serializableObject, CancellationToken cancellationToken)
175+
private static void WriteJsonLine(Stream stream, object serializableObject)
176176
{
177177
using (var streamWriter = new StreamWriter(stream, utf8EncodingWithoutBom, streamBufferSize, true))
178178
using (var jsonWriter = new JsonTextWriter(streamWriter))

0 commit comments

Comments
 (0)