From 4fc1d60d67b783c3d89a2d786b6637f8d1f5191b Mon Sep 17 00:00:00 2001 From: Brad Christensen Date: Fri, 16 Sep 2016 18:57:48 +1200 Subject: [PATCH] Remove cancellationToken parameter as the method is no longer async --- .../HostingModels/SocketNodeInstance.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))