Hi,
I'm creating a server method that I would like to be an async method that return a bool value.
[AllowRpc]
public async static Task<bool> SendEmail(IPrincipal principal, EntityManager entityManager, params Object[] args)
{
}
But I receive this error:
An error occurred while communicating with the server. A common cause for this error is a return type from the invoked method which is either not serializable or not marked as a known type.
I understand that Task<T> is not a valid return type for a server method and I can create SendEmail without async, but I have a bunch of async business logic implemented and I would take advantage of that.
What do you suggest?
Regards.