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

Commit

Permalink
Remove cancellationToken parameter as the method is no longer async
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad Christensen authored and SteveSandersonMS committed Oct 5, 2016
1 parent 1d76284 commit 4fc1d60
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ protected override async Task<T> InvokeExportAsync<T>(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))
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 4fc1d60

Please sign in to comment.