public async Task HandleEventAsync(EntityCreatedEventData <UserEto> eventData)
        {
            // 获取默认语言
            var userDefaultCultureName = await _settingProvider.GetOrNullAsync(LocalizationSettingNames.DefaultLanguage);

            if (userDefaultCultureName.IsNullOrWhiteSpace())
            {
                userDefaultCultureName = CultureInfo.CurrentUICulture.Name;
                // CultureInfo.CurrentCulture = CultureInfo.GetCultureInfo(userDefaultCultureName);
            }
            using (CultureHelper.Use(userDefaultCultureName, userDefaultCultureName))
            {
                // 订阅用户欢迎消息
                await _notificationStore.InsertUserSubscriptionAsync(eventData.Entity.TenantId,
                                                                     eventData.Entity.Id, UserNotificationNames.WelcomeToApplication);

                var userWelcomeNotifiction = new NotificationInfo
                {
                    CreationTime         = DateTime.Now,
                    Name                 = UserNotificationNames.WelcomeToApplication,
                    NotificationSeverity = NotificationSeverity.Info,
                    NotificationType     = NotificationType.System,
                    TenantId             = eventData.Entity.TenantId
                };
                userWelcomeNotifiction.Data.Properties["message"] = L("WelcomeToApplicationFormUser", eventData.Entity.UserName);

                await _notificationDispatcher.DispatcheAsync(userWelcomeNotifiction);
            }
        }
        public async Task SendNofitication([FromForm] SendNotification notification)
        {
            var notificationInfo = new NotificationInfo
            {
                TenantId             = null,
                NotificationSeverity = notification.Severity,
                NotificationType     = NotificationType.Application,
                Id           = new Random().Next(int.MinValue, int.MaxValue),
                Name         = "TestApplicationNotofication",
                CreationTime = Clock.Now
            };

            notificationInfo.Data.Properties["id"]       = notificationInfo.Id.ToString();
            notificationInfo.Data.Properties["title"]    = notification.Title;
            notificationInfo.Data.Properties["message"]  = notification.Message;
            notificationInfo.Data.Properties["datetime"] = Clock.Now;
            notificationInfo.Data.Properties["severity"] = notification.Severity;

            await _notificationDispatcher.DispatcheAsync(notificationInfo);
        }