IUserIdProvider.GetUserId(HubConnectionContext connection) calls are being called by Azure SignalR server in which case they are not going through middlewares.
I need them to go through the middlawares as I am extracting some data from connection url query string so that I can figure out SignalR connection id needed as the result of the call to IUserIdProvider.GetUserId(HubConnectionContext connection). As a workaround I can do(that is, repeat) the job from the middleware in the method IUserIdProvider.GetUserId(HubConnectionContext connection) but it might be the case to make calls from AzureSignalR directed to IUserIdProvider.GetUserId(HubConnectionContext connection) to go through the middlewares as it is the case when not using Azure SignalR service.
By the way the calls to the method IUserIdProvider.GetUserId(HubConnectionContext connection) are only sporadically made from Azure SignalR service.
IUserIdProvider.GetUserId(HubConnectionContext connection)
calls are being called by Azure SignalR server in which case they are not going through middlewares. I need them to go through the middlawares as I am extracting some data from connection url query string so that I can figure out SignalR connection id needed as the result of the call to IUserIdProvider.GetUserId(HubConnectionContext connection). As a workaround I can do(that is, repeat) the job from the middleware in the methodIUserIdProvider.GetUserId(HubConnectionContext connection)
but it might be the case to make calls from AzureSignalR directed toIUserIdProvider.GetUserId(HubConnectionContext connection)
to go through the middlewares as it is the case when not using Azure SignalR service.By the way the calls to the method
IUserIdProvider.GetUserId(HubConnectionContext connection)
are only sporadically made from Azure SignalR service.