Remove cancellationToken parameter as the method is no longer async
This commit is contained in:
parent
1d76284e25
commit
4fc1d60d67
|
|
@ -92,7 +92,7 @@ namespace Microsoft.AspNetCore.NodeServices.HostingModels
|
||||||
virtualConnection = _virtualConnectionClient.OpenVirtualConnection();
|
virtualConnection = _virtualConnectionClient.OpenVirtualConnection();
|
||||||
|
|
||||||
// Send request
|
// Send request
|
||||||
WriteJsonLine(virtualConnection, invocationInfo, cancellationToken);
|
WriteJsonLine(virtualConnection, invocationInfo);
|
||||||
|
|
||||||
// Determine what kind of response format is expected
|
// Determine what kind of response format is expected
|
||||||
if (typeof(T) == typeof(Stream))
|
if (typeof(T) == typeof(Stream))
|
||||||
|
|
@ -172,7 +172,7 @@ namespace Microsoft.AspNetCore.NodeServices.HostingModels
|
||||||
base.Dispose(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 streamWriter = new StreamWriter(stream, utf8EncodingWithoutBom, streamBufferSize, true))
|
||||||
using (var jsonWriter = new JsonTextWriter(streamWriter))
|
using (var jsonWriter = new JsonTextWriter(streamWriter))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue