mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
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.
28 lines
640 B
28 lines
640 B
using System.Threading.Tasks;
|
|
using Volo.Abp.Data;
|
|
using Volo.Abp.DependencyInjection;
|
|
using Volo.Abp.Identity;
|
|
using Volo.Abp.Threading;
|
|
|
|
namespace DashboardDemo
|
|
{
|
|
public class DashboardDemoTestDataBuilder : ITransientDependency
|
|
{
|
|
private readonly IDataSeeder _dataSeeder;
|
|
|
|
public DashboardDemoTestDataBuilder(IDataSeeder dataSeeder)
|
|
{
|
|
_dataSeeder = dataSeeder;
|
|
}
|
|
|
|
public void Build()
|
|
{
|
|
AsyncHelper.RunSync(BuildInternalAsync);
|
|
}
|
|
|
|
public async Task BuildInternalAsync()
|
|
{
|
|
await _dataSeeder.SeedAsync();
|
|
}
|
|
}
|
|
}
|