diff --git a/src/Microsoft.AspNetCore.NodeServices/HostingModels/SocketNodeInstance.cs b/src/Microsoft.AspNetCore.NodeServices/HostingModels/SocketNodeInstance.cs index dc8f9a39..5eabab9a 100644 --- a/src/Microsoft.AspNetCore.NodeServices/HostingModels/SocketNodeInstance.cs +++ b/src/Microsoft.AspNetCore.NodeServices/HostingModels/SocketNodeInstance.cs @@ -92,7 +92,7 @@ protected override async Task InvokeExportAsync(NodeInvocationInfo invocat virtualConnection = _virtualConnectionClient.OpenVirtualConnection(); // Send request - WriteJsonLine(virtualConnection, invocationInfo, cancellationToken); + WriteJsonLine(virtualConnection, invocationInfo); // Determine what kind of response format is expected if (typeof(T) == typeof(Stream)) @@ -172,7 +172,7 @@ protected override void Dispose(bool disposing) base.Dispose(disposing); } - private static void WriteJsonLine(Stream stream, object serializableObject, CancellationToken cancellationToken) + private static void WriteJsonLine(Stream stream, object serializableObject) { using (var streamWriter = new StreamWriter(stream, utf8EncodingWithoutBom, streamBufferSize, true)) using (var jsonWriter = new JsonTextWriter(streamWriter))