Black Friday Sale!
Save up to 50% off any plans! Valid from 23 Nov to 30 Nov - Also valid for the existing customers
Open Closed

NuGet Package update causes deprecated method issues #9019


0
darutter0508 created

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
    maliming created
    Support Team

    hi

    the AbpSession is reported as deprecated

    You should use Context.User in signalr. Please refer to: https://github.com/aspnetboilerplate/aspnetboilerplate/commit/98df3d15a1409e9823f11330c0d6d6d0b3118d26

    I will fix the UserFriendsCache problem. https://github.com/aspnetzero/aspnet-zero-core/issues/3250

  • 0
    darutter0508 created

    These changes are in the AspNetZero base code. Will they be in the latest versions in NuGet?

  • 0
    maliming created
    Support Team

    hi darutter0508

    There is no nuget package for zero, you have to solve it manually according to the code of zero.