Is there a way where we can return TaskHttpResponseMessage
type to HttpResponseMessage type?Below is the
code.
private HttpResponseMessage
Process(string receiver,HttpRequestMessage request)
{
Reciever
test = new Reciever();
Task res=
test.ReceiveAsync(receiver, request);
return res;
}
Actually
my ReceiveAsync method is of
async type and i dont want
Process Method to be of async
type.
Any idea on
this?
Thanks!
No comments:
Post a Comment