Skip to content

Commit

Permalink
MarimerLLC#1059 Implement sync code in HttpProxy that works from Wind…
Browse files Browse the repository at this point in the history
…ows Forms
  • Loading branch information
rockfordlhotka committed Apr 3, 2019
1 parent f2ad736 commit 33affd0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Source/Csla.Shared/DataPortalClient/HttpProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -412,13 +412,14 @@ public async Task<DataPortalResult> Delete(Type objectType, object criteria, Dat

private async Task<byte[]> CallDataPortalServer(HttpClient client, byte[] serialized, string operation, string routingToken, bool isSync)
{
var task = CallDataPortalServer(client, serialized, operation, routingToken);
//var task = CallDataPortalServer(client, serialized, operation, routingToken);
#if !NET40
if (isSync)
serialized = task.RunWithContext(_client.Timeout);
Task.Run(async () =>
serialized = await CallDataPortalServer(client, serialized, operation, routingToken)).Wait();
else
#endif
serialized = await task;
serialized = await CallDataPortalServer(client, serialized, operation, routingToken);
return serialized;
}

Expand Down

0 comments on commit 33affd0

Please sign in to comment.