public EditProfileViewProvider(
     IUserNotificationTypeDefaults userNotificationTypeDefaults,
     INotificationTypeManager notificationTypeManager,
     IHttpContextAccessor httpContextAccessor,
     IPlatoUserStore <User> platoUserStore,
     UserManager <User> userManager)
 {
     _userNotificationTypeDefaults = userNotificationTypeDefaults;
     _notificationTypeManager      = notificationTypeManager;
     _httpContextAccessor          = httpContextAccessor;
     _platoUserStore = platoUserStore;
     _userManager    = userManager;
 }
Exemple #2
0
        public HomeController(
            IHtmlLocalizer htmlLocalizer,
            IStringLocalizer stringLocalizer,
            IViewProviderManager <EditNotificationsViewModel> editProfileViewProvider,
            IAlerter alerter, IBreadCrumbManager breadCrumbManager,
            INotificationTypeManager notificationTypeManager,
            UserManager <User> userManager,
            IContextFacade contextFacade)
        {
            _notificationTypeManager = notificationTypeManager;
            _editProfileViewProvider = editProfileViewProvider;
            _breadCrumbManager       = breadCrumbManager;
            _contextFacade           = contextFacade;
            _userManager             = userManager;
            _alerter = alerter;

            T = htmlLocalizer;
            S = stringLocalizer;
        }
 /// <summary>
 /// 初始化类<see cref="DefaultNotifier"/>。
 /// </summary>
 /// <param name="notificationManager">通知管理接口。</param>
 /// <param name="typeManager">通知类型管理接口。</param>
 public DefaultNotifier(INotificationManager notificationManager, INotificationTypeManager typeManager) : base(notificationManager, typeManager)
 {
 }
 public UserNotificationTypeDefaults(
     INotificationTypeManager notificationTypeManager)
 {
     _notificationTypeManager = notificationTypeManager;
 }
Exemple #5
0
 public EditModel(INotificationTypeManager typeManager)
 {
     _typeManager = typeManager;
 }
Exemple #6
0
 public IndexModel(INotificationTypeManager typeManager, ISettingsManager settingsManager)
 {
     _typeManager     = typeManager;
     _settingsManager = settingsManager;
 }
Exemple #7
0
 /// <summary>
 /// 初始化类<see cref="Notifier"/>。
 /// </summary>
 /// <param name="notificationManager">通知管理接口。</param>
 /// <param name="typeManager">通知类型管理接口。</param>
 protected Notifier(INotificationManager notificationManager, INotificationTypeManager typeManager)
 {
     _notificationManager = notificationManager;
     _typeManager         = typeManager;
 }
Exemple #8
0
 /// <summary>
 /// 初始化类<see cref="Notifier"/>。
 /// </summary>
 /// <param name="notificationManager">通知管理接口。</param>
 /// <param name="typeManager">通知类型管理接口。</param>
 public Notifier(INotificationManager notificationManager, INotificationTypeManager typeManager)
 {
     _notificationManager = notificationManager;
     _typeManager         = typeManager;
 }