Skip to content

Commit

Permalink
Merge branch 'master' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenMP committed Apr 27, 2019
2 parents cd382e4 + 3b37bd8 commit bf993d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SLOBSharp/Client/Responses/SlobsRpcResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ public class SlobsRpcResponse
[JsonProperty("jsonrpc")]
public string Jsonrpc { get; set; }

public string JsonResponse { get; set; }

[JsonProperty("result")]
[JsonConverter(typeof(SingleOrArrayConverter<SlobsResult>))]
public IEnumerable<SlobsResult> Result { get; set; }
Expand Down
2 changes: 2 additions & 0 deletions SLOBSharp/Domain/Services/SlobsPipeService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public IEnumerable<SlobsRpcResponse> ExecuteRequests(NamedPipeClientStream pipe,
{
responseJson = reader.ReadLine();
response = JsonConvert.DeserializeObject<SlobsRpcResponse>(responseJson);
response.JsonResponse = responseJson;
slobsRpcResponses.Add(response);
}

Expand Down Expand Up @@ -118,6 +119,7 @@ public async Task<IEnumerable<SlobsRpcResponse>> ExecuteRequestsAsync(NamedPipeC
{
responseJson = await reader.ReadLineAsync().ConfigureAwait(false);
response = JsonConvert.DeserializeObject<SlobsRpcResponse>(responseJson);
response.JsonResponse = responseJson;
slobsRpcResponses.Add(response);
}

Expand Down

0 comments on commit bf993d7

Please sign in to comment.