这是基于vue-vben-admin 模板适用于abp vNext的前端管理项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
996 B

using LINGYUN.Abp.MicroService.MessageService.DataSeeds;
using System.Threading.Tasks;
using Volo.Abp.Data;
using Volo.Abp.DependencyInjection;
using Volo.Abp.MultiTenancy;
namespace LINGYUN.Abp.MicroService.MessageService;
public class MessageServiceDataSeeder : ITransientDependency
{
protected NotificationDataSeeder NotificationDataSeeder { get; }
protected ICurrentTenant CurrentTenant { get; }
public MessageServiceDataSeeder(
ICurrentTenant currentTenant,
NotificationDataSeeder notificationDataSeeder)
{
CurrentTenant = currentTenant;
NotificationDataSeeder = notificationDataSeeder;
}
public async virtual Task SeedAsync(DataSeedContext context)
{
using (CurrentTenant.Change(context.TenantId))
{
await SeedNotificationAsync(context);
}
}
private async Task SeedNotificationAsync(DataSeedContext context)
{
await NotificationDataSeeder.SeedAsync(context);
}
}