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
Trying to access the IdempotencyLevelMethodOption is arguably more challenging than accessing other custom method options. One can use the convenient readMethodOption() from @protobuf-ts/runtime-rpc to get custom options which handles finding the correct MethodInfo from the list of methods on the service.
But when trying to discover a method's IdempotencyLevel one must instead manually iterate over the ServiceType.method array. At the very least it'd be convenient to have some exported function similar to readMethodOption() which would return the MethodInfo given a method name and service. Something like:
Trying to access the
IdempotencyLevel
MethodOption
is arguably more challenging than accessing other custom method options. One can use the convenientreadMethodOption()
from @protobuf-ts/runtime-rpc to get custom options which handles finding the correctMethodInfo
from the list ofmethods
on the service.But when trying to discover a method's
IdempotencyLevel
one must instead manually iterate over theServiceType.method
array. At the very least it'd be convenient to have some exported function similar toreadMethodOption()
which would return theMethodInfo
given a method name and service. Something like:The text was updated successfully, but these errors were encountered: