add delay ondisconnectasync and throw proper exceptions
This commit is contained in:
@@ -97,10 +97,12 @@ public class SignalRLimitFilter : IHubFilter
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
await next(context, exception);
|
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
|
finally
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user