fix(AnnotationController): use PublishSafely for docSignedNotification
Replaced `await _mediator.Publish(docSignedNotification, cancel)` with `await _mediator.PublishSafely(docSignedNotification, cancel)` to ensure safe publishing of notifications without unhandled exceptions.
This commit is contained in:
parent
f3af30c67d
commit
17c7e46388
@ -65,7 +65,7 @@ public class AnnotationController : ControllerBase
|
|||||||
.ToDocSignedNotification(psPdfKitAnnotation)
|
.ToDocSignedNotification(psPdfKitAnnotation)
|
||||||
?? throw new NotFoundException("Envelope receiver is not found.");
|
?? throw new NotFoundException("Envelope receiver is not found.");
|
||||||
|
|
||||||
await _mediator.Publish(docSignedNotification, cancel);
|
await _mediator.PublishSafely(docSignedNotification, cancel);
|
||||||
|
|
||||||
await HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme);
|
await HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user