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:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user