山东雷驰
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.

41 lines
984 B

3 months ago
using Kean.Application.Command.Interfaces;
using Kean.Domain;
using Kean.Domain.App.Commands;
using System.Threading.Tasks;
namespace Kean.Application.Command.Implements
{
/// <summary>
/// 应用程序服务
/// </summary>
public class AppService : IAppService
{
private readonly ICommandBus _bus; // 命令总线
/// <summary>
/// 依赖注入
/// </summary>
public AppService(
ICommandBus bus)
{
_bus = bus;
}
/*
* Kean.Application.Command.Interfaces.IAppService.InitParam()
*/
public async Task InitParam()
{
await _bus.Execute(new LoadParamCommand());
}
/*
* Kean.Application.Command.Interfaces.IAppService.InitBlacklist()
*/
public async Task InitBlacklist()
{
await _bus.Execute(new LoadBlacklistCommand());
}
}
}