You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By returning TResult?, it's impossible for a caller to tell the difference between null as a valid result and null because the remote service call failed. This issue tracks changing this method to return Optional<TResult> and updating callers to handle the result gracefully.
Alternatively, the implementation of IRemoteServiceInvoker could be changed to throw on failures rather than returning default.
The text was updated successfully, but these errors were encountered:
Currently, the
IRemoteServiceInvoker
is defined like so:By returning
TResult?
, it's impossible for a caller to tell the difference betweennull
as a valid result andnull
because the remote service call failed. This issue tracks changing this method to returnOptional<TResult>
and updating callers to handle the result gracefully.Alternatively, the implementation of
IRemoteServiceInvoker
could be changed to throw on failures rather than returningdefault
.The text was updated successfully, but these errors were encountered: