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
Using C# language to make GRPC calls with MagicOnion library, how to create a method that return void without to use UnaryResult struct? This struct force to inform a return type. I would like to create methods that returns nothing.
Thanks!
The text was updated successfully, but these errors were encountered:
You must use UnaryResult for the return type of MagicOnion's Unary. If you are looking for something equivalent to void, you can use the generic UnaryResult.
In the case of async, you can return no value, and even if it is not async, you should return default or UnaryResult.CompletedResult.
Using C# language to make GRPC calls with MagicOnion library, how to create a method that return void without to use UnaryResult struct? This struct force to inform a return type. I would like to create methods that returns nothing.
Thanks!
The text was updated successfully, but these errors were encountered: