Skip to content

Commit

Permalink
fix(messaging/dotnet):Remove unnecessary usages of OnRequestStop
Browse files Browse the repository at this point in the history
  • Loading branch information
BalassaMarton committed Jan 26, 2024
1 parent d5b6c8a commit 55f9108
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ private void HandleInvokeRequest(InvokeRequest message)
await SendMessageAsync(
response,
(message, exception) => OnRequestStop((Message) message!, exception),
(state, exception) => OnRequestStop((Message) state!, exception),
message,
_stateChangeEvents.CloseRequested.Token);
}
Expand All @@ -423,12 +423,10 @@ private void HandleResponse(AbstractResponse message)
{
var exception = new MessageRouterException(message.Error);
tcs.TrySetException(exception);
OnRequestStop(message, exception);
}
else
{
tcs.TrySetResult(message);
OnRequestStop(message);
}
}

Expand Down

0 comments on commit 55f9108

Please sign in to comment.