public async Task NewTenantRegisteredAsync(Tenant tenant) { var notificationData = new LocalizableMessageNotificationData( new LocalizableString( "NewTenantRegisteredNotificationMessage", TomAbpConsts.LocalizationSourceName ) ); notificationData["tenancyName"] = tenant.TenancyName; await _notificationPublisher.PublishAsync(AppNotificationNames.NewTenantRegistered, notificationData); }
public async Task NewUserRegisteredAsync(User user) { var notificationData = new LocalizableMessageNotificationData( new LocalizableString( "NewUserRegisteredNotificationMessage", TomAbpConsts.LocalizationSourceName ) ); notificationData["userName"] = user.UserName; notificationData["emailAddress"] = user.EmailAddress; await _notificationPublisher.PublishAsync(AppNotificationNames.NewUserRegistered, notificationData, tenantIds: new[] { user.TenantId }); }