jbogard / MediatR

Simple, unambitious mediator implementation in .NET
Apache License 2.0
10.84k stars 1.15k forks source link

long running INotificationHandler #1026

Open safari137 opened 2 months ago

safari137 commented 2 months ago

I have a long running task that receives a published notification. It's also a fire and forget scenario since the publisher is an API endpoint. It seems like the process dies after about 5-10 minutes. Is there a way to make the notification handler a singleton?

Danielovich commented 1 month ago

See if this is not something useful https://github.com/jbogard/MediatR/issues/519