I updated my NuGet packages to the latest Abp set and now I get a few deprecated method errors in the ChatHub and UserFriendsCache classes. In the ChatHub, the AbpSession is reported as deprecated and in the UserFriendsCache, the .Get<string, UserWithFriendsCacheItem> and .GetOrDefault<string, UserWithFriendsCacheItem> methods are both flagged as deprecated. What do I use to replace these methods?
3 Answer(s)
-
0
hi
the AbpSession is reported as deprecated
You should use
Context.User
in signalr. Please refer to: https://github.com/aspnetboilerplate/aspnetboilerplate/commit/98df3d15a1409e9823f11330c0d6d6d0b3118d26I will fix the
UserFriendsCache
problem. https://github.com/aspnetzero/aspnet-zero-core/issues/3250 -
0
These changes are in the AspNetZero base code. Will they be in the latest versions in NuGet?
-
0
hi darutter0508
There is no nuget package for zero, you have to solve it manually according to the code of zero.