Quantcast
Channel: Asp.net Core + Hangfire ends up with closed or disposed connection - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Answer by David for Asp.net Core + Hangfire ends up with closed or disposed connection

$
0
0

Found my answer with the help of the post below. I had thought I had missed some Hangfire configuration. In fact I made this change

OLD

public async void ProcessPostedData(Guid submitId, int retry = 0)

WORKING

public async Task ProcessPostedData(Guid submitId, int retry = 0)

I was calling an async method returning void when it should have been Task. I hope this helps someone else save 3 hours.

Cannot access a disposed object Asp.net Identity Core


Viewing all articles
Browse latest Browse all 2

Trending Articles