add delay ondisconnectasync and throw proper exceptions

This commit is contained in:
Stanley Dimant
2022-08-15 12:53:36 +02:00
parent c7dccc7e58
commit 149a67fd6f

View File

@@ -97,10 +97,12 @@ public class SignalRLimitFilter : IHubFilter
try
{
await next(context, exception);
await Task.Delay(250);
}
catch
catch (Exception e)
{
logger.LogWarning(exception, "Error on OnDisconnectedAsync");
logger.LogWarning(exception, "InitialException on OnDisconnectedAsync");
logger.LogWarning(e, "ThrownException on OnDisconnectedAsync");
}
finally
{