-1

Please provide the following methods in IMessageReceiver:

bool TryReceive(out Message msg, TimeSpan timeout)
Task<bool> TryReceiveAsync(out Message msg, TimeSpan timeout)

So that we can use these like:

if (TryReceive(out Message msg, TimeSpan.FromSeconds(30))
{
    ...
}
else
{
    ...
}
Aniket V
  • 3,183
  • 2
  • 15
  • 27
ni24
  • 7
  • 2
  • This is wrong. If you want to make a feature request, go to the library [repository](https://github.com/Azure/azure-service-bus-dotnet/issues), not SO. StackOverflow is for questions and answers. Also, there will be no synchronous version as the entire library is about IO. Therefore it should be async. – Sean Feldman Apr 06 '18 at 05:42
  • 1
    I'm voting to close this question as off-topic because it's a feature request, not a question. – Sean Feldman Apr 06 '18 at 05:43

1 Answers1

0

If you want to make a feature request for Azure Functions you can leave that feedback here: https://feedback.azure.com/forums/355860-azure-functions

micahmckittrick
  • 1,476
  • 8
  • 11