C# - How to return void on contract definition
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!
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.
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days.