Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete all obsolete methods #1401

Closed
hikalkan opened this issue Sep 26, 2016 · 0 comments
Closed

Delete all obsolete methods #1401

hikalkan opened this issue Sep 26, 2016 · 0 comments

Comments

@hikalkan
Copy link
Member

hikalkan commented Sep 26, 2016

Removed Properties and Methods

  • ILocalizationManager.GetAllLanguages (use ILanguageManager.GetLanguages() instead).
  • ILocalizationManager.CurrentLanguage (use ILanguageManager.CurrentLanguage instead)
  • IPermissionChecker.IsGrantedAsync(long userId, string permissionName) (use IsGrantedAsync(UserIdentifier user, string permissionName) instead).
  • ISettingManager.GetAllSettingValuesForUserAsync(long userId) (use GetAllSettingValuesForUserAsync(UserIdentifier user) instead)
  • ISettingManager.ChangeSettingForUserAsync(long userId, string name, string value) (use ChangeSettingForUserAsync(UserIdentifier user, string name, string value))
  • IUserNavigationManager.GetMenuAsync(string menuName, long? userId, int? tenantId = null) (use GetMenuAsync(string menuName, UserIdentifier user) instead).
  • IUserNavigationManager.GetMenusAsync(long? userId, int? tenantId = null) (use GetMenusAsync(UserIdentifier user) instead).
  • OnlineClientManagerExtensions.GetByUserIdOrNull (use GetAllByUserId instead which may return multiple client if user has connected from more than one browser)
  • AbpController.CurrentSession (use AbpSession instead).
  • AbpApiController.CurrentSession (use AbpSession instead).
  • ApplicationService.CurrentSession (use AbpSession instead).
  • IDbContextProvider.DbContext (use GetDbContext() instead).

Removed Classes

  • SettingHelper (inject and use ISettingManager instead. In static contexts, you can use SingletonDependency.Instance but this breaks testability)
  • ServiceProxiesController (use AbpServiceProxiesController instead).
  • XmlLocalizationSource (use DictionaryBasedLocalizationSource as done in startup templates. This does not remove XML localization source support)
  • ThreadSafeObjectCache and AsyncThreadSafeObjectCache and (use cache system: http://www.aspnetboilerplate.com/Pages/Documents/Caching)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant