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
In almost all cases, synchronous methods from the LocalizationService, SettingService, and other services are used only during migrations.
We can move all these methods to a separate auxiliary class or service. We can also simplify these methods, since for migrations, for example, there is no point in publishing events like EntityInsertedEvent or EntityDeletedAsync, as well as any other events, since no one will process them at the time of migrations.
Also, in most cases, there is no need to cache data. Thus, we will abandon synchronous methods in our core, leaving only the necessary minimum for migrations.