示例#1
0
 public EditProfileViewProvider(
     IUserNotificationTypeDefaults userNotificationTypeDefaults,
     INotificationTypeManager notificationTypeManager,
     IHttpContextAccessor httpContextAccessor,
     IPlatoUserStore <User> platoUserStore,
     UserManager <User> userManager)
 {
     _userNotificationTypeDefaults = userNotificationTypeDefaults;
     _notificationTypeManager      = notificationTypeManager;
     _httpContextAccessor          = httpContextAccessor;
     _platoUserStore = platoUserStore;
     _userManager    = userManager;
 }
示例#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;
        }
示例#3
0
 /// <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;
 }
示例#5
0
 public EditModel(INotificationTypeManager typeManager)
 {
     _typeManager = typeManager;
 }
示例#6
0
 public IndexModel(INotificationTypeManager typeManager, ISettingsManager settingsManager)
 {
     _typeManager     = typeManager;
     _settingsManager = settingsManager;
 }
示例#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;
 }
示例#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;
 }