Skip to content

Commit

Permalink
destroy RpcContext
Browse files Browse the repository at this point in the history
destroy RpcContext
  • Loading branch information
fanliang11 committed Jun 7, 2021
1 parent 16c124b commit ba5e1d1
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -144,6 +144,10 @@ private async Task LocalExecuteAsync(ServiceEntry entry, RemoteInvokeMessage rem
resultMessage.ExceptionMessage = GetExceptionMessage(exception);
resultMessage.StatusCode = exception.HResult;
}
finally
{
RpcContext.RemoveContext();
}
}

private async Task SendRemoteInvokeResult(IMessageSender sender, string messageId, RemoteInvokeResultMessage resultMessage)
Expand Down Expand Up @@ -179,4 +183,4 @@ private static string GetExceptionMessage(Exception exception)

#endregion Private Method
}
}
}

0 comments on commit ba5e1d1

Please sign in to comment.