You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently using 6.1.6 version, I saw 7.0.0 update and wanted to upgrade but I see "StreamingHubContext is now reused
StreamingHubContext is now reused, so caching StreamingHubContext outside of Hub method calls may result in unexpected behavior. The context is only valid during the call." change.
I'm used to cache IChatHub. Since IChatHub contains StreamingHubContext does this change affect me?
If yes, what solution you suggest? Thanks.
Example;
public class ClientData : IClientData
{
public AccountInfo AccountInfo { get; set; }
public IChatHub ChatHub { get; set; }
public ClientData(AccountInfo accountInfo)
{
AccountInfo = accountInfo;
}
}
public class ClientManager {
private readonly ConcurrentDictionary<int, ClientData> _loggedClients = new ConcurrentDictionary<int, ClientData>();
}
The text was updated successfully, but these errors were encountered:
I'm currently using 6.1.6 version, I saw 7.0.0 update and wanted to upgrade but I see "StreamingHubContext is now reused
StreamingHubContext is now reused, so caching StreamingHubContext outside of Hub method calls may result in unexpected behavior. The context is only valid during the call." change.
I'm used to cache IChatHub. Since IChatHub contains StreamingHubContext does this change affect me?
If yes, what solution you suggest? Thanks.
Example;
The text was updated successfully, but these errors were encountered: