using System; using System.Threading.Tasks; using Abp.Application.Services; using Abp.Runtime.Caching; using Abp.Runtime.Session; using Abp.UI; using IwbZero.AppServiceBase; using WePlatform.Authorization.Users; using WePlatform.CommonManager.AppGuids; using WePlatform.CommonManager.Notifications; using WePlatform.CommonManager.States; namespace WePlatform.DataCenter { public abstract class DataCenterAppServiceBase : IwbZeroAppServiceBase { protected DataCenterAppServiceBase(ICacheManager cacheManager = null) { CacheManager = cacheManager; StatesManager = NullStatesManager.Instance; AppGuidManager = NullAppGuidManager.Instance; NoticeManager = NullNotificationManager.Instance; } public INotificationManager NoticeManager { get; set; } public IStatesManager StatesManager { get; set; } public IAppGuidManager AppGuidManager { get; set; } protected override void CheckErrors(string error) { throw new UserFriendlyException(error); } } }