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
I have a question or feature suggestion for the queue's exception handling. I want to correlate the exception with a taskId, but the IListener<DequeuedTaskFailed> does not include the Exception and the OnError(ex => {}) does not include the TaskId:
publicclassDequeuedTaskFailedListener:IListener<DequeuedTaskFailed>{publicTaskHandleAsync(DequeuedTaskFailede){// no exception providede.Exception?}}
and/or here:
.OnError(ex =>{//no taskId provided});
What is the pattern should I use?
Suggestions
(1) Include the Exception in the DequeuedTaskFailed property (DequeuedTaskFailed.Exception)
(2) Modify the delegate to include the taskId: .OnError((ex, taskId) => {});
(3) Allow users to set the taskId: _queue.QueueAsyncTask(taskId: Guid.NewGuid(), async () => { ... });
The text was updated successfully, but these errors were encountered:
Hello
Thanks for this great library.
I have a question or feature suggestion for the queue's exception handling. I want to correlate the exception with a taskId, but the
IListener<DequeuedTaskFailed>
does not include the Exception and the OnError(ex => {}) does not include the TaskId:If I invoke a queue which throws:
I can listen for the exception here:
and/or here:
What is the pattern should I use?
Suggestions
(1) Include the Exception in the
DequeuedTaskFailed
property (DequeuedTaskFailed.Exception
)(2) Modify the delegate to include the taskId:
.OnError((ex, taskId) => {});
(3) Allow users to set the taskId:
_queue.QueueAsyncTask(taskId: Guid.NewGuid(), async () => { ... });
The text was updated successfully, but these errors were encountered: