예제 #1
0
 public NpcCommandHandler(
     IMediatorHandler bus,
     ILogger <NpcCommandHandler> logger,
     INpcDomainService npcDomainService,
     IPlayerDomainService playerDomainService,
     IScriptDomainService scriptDomainService,
     INpcScriptDomainService npcScriptDomainService,
     IScriptCommandDomainService scriptCommandDomainService,
     IWareDomainService wareDomainService,
     IPlayerWareDomainService playerWareDomainService,
     IQuestDomainService questDomainService,
     IPlayerQuestDomainService playerQuestDomainService,
     IMapper mapper,
     IMemoryCache cache,
     IRedisDb redisDb,
     IMudProvider mudProvider,
     INotificationHandler <DomainNotification> notifications,
     IUnitOfWork uow) : base(uow, bus, notifications)
 {
     _bus                        = bus;
     _logger                     = logger;
     _npcDomainService           = npcDomainService;
     _mapper                     = mapper;
     _cache                      = cache;
     _playerDomainService        = playerDomainService;
     _scriptDomainService        = scriptDomainService;
     _npcScriptDomainService     = npcScriptDomainService;
     _scriptCommandDomainService = scriptCommandDomainService;
     _wareDomainService          = wareDomainService;
     _playerWareDomainService    = playerWareDomainService;
     _questDomainService         = questDomainService;
     _playerQuestDomainService   = playerQuestDomainService;
     _redisDb                    = redisDb;
     _mudProvider                = mudProvider;
 }
예제 #2
0
 public NpcAppService(IMediatorHandler bus, IMapper mapper, INpcDomainService npcDomainService, IPlayerDomainService playerDomainService, IAccountContext account, IScriptDomainService scriptDomainService, INpcScriptDomainService npcScriptDomainService, IMudProvider mudProvider, ILogger <NpcAppService> logger,
                      IUnitOfWork uow,
                      IOperatorLogDomainService operatorLogDomainService)
     : base(uow)
 {
     _bus                      = bus;
     _mapper                   = mapper;
     _npcDomainService         = npcDomainService;
     _playerDomainService      = playerDomainService;
     _account                  = account;
     _scriptDomainService      = scriptDomainService;
     _npcScriptDomainService   = npcScriptDomainService;
     _mudProvider              = mudProvider;
     _logger                   = logger;
     _operatorLogDomainService = operatorLogDomainService;
 }